# HG changeset patch # User bgruening # Date 1690890130 0 # Node ID 8c191acde7024b9fa03ea5009c4abc770bd4f193 # Parent 120b7b35e4428f4cd019deef254c15cad77efe72 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/bismark commit 3005cec91ca52f9d28aa2fe0bd4190555abafc35 diff -r 120b7b35e442 -r 8c191acde702 bismark_methylation_extractor.py --- a/bismark_methylation_extractor.py Thu Apr 22 17:05:46 2021 +0000 +++ b/bismark_methylation_extractor.py Tue Aug 01 11:42:10 2023 +0000 @@ -69,6 +69,8 @@ parser.add_argument("--splitting_report", dest="splitting_report") parser.add_argument("--mbias_report", dest="mbias_report") parser.add_argument("--cytosine_report", dest="cytosine_report") + parser.add_argument("--coverage_file", dest="coverage_file") + parser.add_argument("--genome_file", dest="genome_file") parser.add_argument("--cx_context", action="store_true") @@ -133,7 +135,6 @@ "--bedGraph", "--CX_context", "--cytosine_report", - "--CX_context", "--genome_folder", tmp_genome_dir, ] @@ -175,11 +176,20 @@ glob(os.path.join(output_dir, "*CX_report.txt"))[0], args.cytosine_report, ) + else: shutil.move( glob(os.path.join(output_dir, "*CpG_report.txt"))[0], args.cytosine_report, ) + + # coverage file + if args.coverage_file: + shutil.move( + glob(os.path.join(output_dir, "*datbismark.cov.gz"))[0], + args.coverage_file, + ) + # splitting report if args.splitting_report: logger.debug("Collecting splitting report.") diff -r 120b7b35e442 -r 8c191acde702 bismark_methylation_extractor.xml --- a/bismark_methylation_extractor.xml Thu Apr 22 17:05:46 2021 +0000 +++ b/bismark_methylation_extractor.xml Tue Aug 01 11:42:10 2023 +0000 @@ -1,9 +1,9 @@ - + Reports on methylation status of reads mapped by Bismark bismark samtools - bowtie2 + bowtie2 + + @@ -158,6 +164,10 @@ label="${tool.name} on ${on_string}: Genome-wide methylation report."> ( cytosine_report['cytosine_report_selector'] ) + + ( cytosine_report['cytosine_report_selector'] and cytosine_report['coverage_output']) + ( output_settings['separate_logfile'] is True ) @@ -184,6 +194,20 @@ + + + + + + + + + + + + + + diff -r 120b7b35e442 -r 8c191acde702 test-data/output_splitting_report.txt --- a/test-data/output_splitting_report.txt Thu Apr 22 17:05:46 2021 +0000 +++ b/test-data/output_splitting_report.txt Tue Aug 01 11:42:10 2023 +0000 @@ -1,4 +1,4 @@ -dataset_76c1988f-01b0-427e-9dbe-bfb5eee1c664.dat +dataset_4c47ea8c-d35c-4f79-9403-33b9e262c542.dat Parameters used to extract methylation information: Bismark Extractor Version: v0.22.1