code: def _rnaseq_qualimap_cmd(data, bam_file, out_dir, gtf_file=None, library="non-strand-specific"):
      
      config = data["config"]
      qualimap = config_utils.get_program("qualimap", config)
      resources = config_utils.get_resources("qualimap", config)
      num_cores = resources.get("cores", dd.get_num_cores(data))
      max_mem = config_utils.adjust_memory(resources.get("memory", "2G"),
                                           num_cores)
      export = "%s%s" % (utils.java_freetype_fix(), utils.local_path_export())
      export = "%s%s export JAVA_OPTS='-Xms32m -Xmx%s -Djava.io.tmpdir=%s' && " % (
          utils.java_freetype_fix(), utils.local_path_export(), max_mem, out_dir)
      paired = " --paired" if bam.is_paired(bam_file) else ""
      cmd = ("unset DISPLAY && {export} {qualimap} rnaseq -outdir {out_dir} "
             "-a proportional -bam {bam_file} -p {library}{paired} "
             "-gtf {gtf_file}").format(**locals())
      return cmd
docs: Create command lines for qualimap