# HG changeset patch # User iuc # Date 1674563574 0 # Node ID a671907f96fec3b684bee0b857a92e5928a0f7af # Parent 134e4e78e754350dcd8f9afa7ececd18420204e2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tools/coverm commit 2388df7187533fb66b7729730340d2eb7b93c112 diff -r 134e4e78e754 -r a671907f96fe coverm_genome.xml --- a/coverm_genome.xml Tue Apr 26 15:27:01 2022 +0000 +++ b/coverm_genome.xml Tue Jan 24 12:32:54 2023 +0000 @@ -1,5 +1,5 @@ - - read coverage and relative abundance calculator focused on metagenomics applications + + Calculate coverage of individual genomes macros.xml @@ -135,7 +135,7 @@ ln -s '$input_file' '$file_path' && $ref_files.append($file_path) #end for - #if $reads.genome.add_genome.add_genome + #if $reads.genome.add_genome.add_genome == "true" mkdir -p genomes && #set genome_files = [] #if $reads.genome.add_genome.add_genomic == "history" @@ -156,7 +156,8 @@ #end if #end if #end if - + + mkdir ./representative-fasta/ && coverm genome #if $reads.read_type == 'paired' -1 @@ -240,7 +241,7 @@ -s "$reads.genome.cond_single_genome.separator" #end if #end if - #if $reads.genome.add_genome.add_genome + #if $reads.genome.add_genome.add_genome == "true" -f #for $genome in $genome_files '${genome}' @@ -255,27 +256,27 @@ $derep.dereplicate #if $derep.checkm_tab_table: - --chekm-tab-table $derep.checkm_tab_table + --chekm-tab-table '$derep.checkm_tab_table' #end if #if $derep.genome_info: - --genome-info $derep.genome_info + --genome-info '$derep.genome_info' #end if - #if $derep.min_completeness: + #if $derep.min_completeness != "": --min-completeness $derep.min_completeness #end if - #if $derep.max_contamination: + #if $derep.max_contamination != "": --max-contamination $derep.max_contamination #end if - #if $derep.dereplication_ani: + #if $derep.dereplication_ani != "": --dereplication-ani $derep.dereplication_ani #end if - #if $derep.dereplication_aligned_fraction: + #if $derep.dereplication_aligned_fraction != "": --dereplication-aligned-fraction $derep.dereplication_aligned_fraction #end if - #if $derep.dereplication_fragment_length: + #if $derep.dereplication_fragment_length != "": --dereplication-fragment-length $derep.dereplication_fragment_length #end if - #if $derep.dereplication_prethreshold_ani: + #if $derep.dereplication_prethreshold_ani != "": --dereplication-prethreshold-ani $derep.dereplication_prethreshold_ani #end if #if $derep.dereplication_quality_formula: @@ -315,13 +316,13 @@ --methods $cov.relative_abundance $cov.mean $cov.cond_methods.trimmed_mean $cov.covered_bases $cov.covered_fraction $cov.variance $cov.length $cov.count $cov.metabat $cov.coverage_histogram $cov.reads_per_base $cov.rpkm $cov.tpm - #if $cov.min_covered_fraction: + #if $cov.min_covered_fraction != "": --min-covered-fraction $cov.min_covered_fraction #end if - #if $cov.contig_end_exclusion: + #if $cov.contig_end_exclusion != "": --contig-end-exclusion $cov.contig_end_exclusion #end if - #if $cov.cond_methods.trimmed_mean + #if $cov.cond_methods.trimmed_mean == "trimmed_mean" #if $cov.cond_methods.trim_min: --trim-min $cov.cond_methods.trim_min #end if @@ -334,15 +335,18 @@ --output-format $out.output_format #end if #if $out.dereplication_output_cluster_definition: - --dereplication-output-cluster-definition + --dereplication-output-cluster-definition '$cluster_definition' #end if #if $out.dereplication_output_representative_fasta_directory_copy: - --dereplication-output-representative-fasta-directory-copy . + --dereplication-output-representative-fasta-directory-copy ./representative-fasta/ #end if $out.no_zeros --output-file output.tsv --threads \${GALAXY_SLOTS:-1} - 2> stdout.txt + + #if $derep.dereplicate and $out.dereplication_output_cluster_definition + && sed -i -e 's@genomes/@@g; s/\.fna//g' '$cluster_definition' + #end if ]]> @@ -394,12 +398,16 @@ - - out['dereplication_output_cluster_definition'] + + derep['dereplicate'] and out['dereplication_output_cluster_definition'] + + + derep['dereplicate'] and out['dereplication_output_representative_fasta_directory_copy'] + - + @@ -489,7 +497,7 @@ - + @@ -513,7 +521,20 @@
+
+ +
+
+ + +
+ + + + + +
diff -r 134e4e78e754 -r a671907f96fe macros.xml --- a/macros.xml Tue Apr 26 15:27:01 2022 +0000 +++ b/macros.xml Tue Jan 24 12:32:54 2023 +0000 @@ -1,12 +1,13 @@ - coverm + coverm fasta,fastq,fastq.gz,fasta.gz - 0.2.1 + 0.6.1 0 + 22.01 @@ -96,7 +97,10 @@ - + + + + @@ -186,7 +190,7 @@
- + @@ -251,7 +255,10 @@ - + + + + diff -r 134e4e78e754 -r a671907f96fe test-data/test4_cluster.tsv --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/test4_cluster.tsv Tue Jan 24 12:32:54 2023 +0000 @@ -0,0 +1,3 @@ +genome1 genome1 +genome2 genome2 +genome3 genome3 diff -r 134e4e78e754 -r a671907f96fe test-data/test4_rep.fa diff -r 134e4e78e754 -r a671907f96fe test-data/test4_rep1.fa --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/test4_rep1.fa Tue Jan 24 12:32:54 2023 +0000 @@ -0,0 +1,4 @@ +>random_sequence_length_500_1 +GAACATGGGGGGTTGTACACCGCTGGCAGGATATAAAAGAGCGAATTCTTCGTGGTGGGATGCAGAATGTTCATGCACCGCAAACCTTAGGCCCTACCCAATAACAGTCAGCTCCTCCCCTAGAAATACCGTGTCTACGTGTATGTAATGTCAAAACCGCGCTGGTCCATAACTGACCACGACATACGCTTAAGCGACGCAGGTCCCCGTTTATGGACGCAGTAAGATGATATGACAGTAACAGAACGAACGCCTTGATAGCCACTTGGCCTGGTGCCAACGGGGAACGACCTATAGGGGCCAAATTGATTCCAGCTGGTCGGGTGCGCGTATCATCCAATCCAGCCAGGCAGCAACCTCGTATAAGCATCCACACAGCGAGATTTCCAGGACCTTTGAGACGCATCTAGCAGTTTTCCCCCCTTCCACTGACACGTAGTTGATCAAATATCTCGTGTCCACCGGAATCCTCAGAGATTCTCTTCTGTCAAAAAACACTC +>random_sequence_length_500_2 +CGCTCATGTGCCAAGCATGGACGCCGGAGACACATTTGCTAGTCGGGATGTACGCGGTCTTGTCCACTCTAAAGGGTAAATACAGGAAGCGGTCTCTAGGGACGGGCACTTAATGTAGTTGCATTTATCGATCGCGGGTCCAGATCTGATAGCCGTGCTATGCACATACGATGCTCATAACGCGCGTGATTCCCTTCATTAAGGTACGGCTACCCTGCACCTCTAGACTTGTTTGTACTATCTAGAGCAGTGAGTCGAGCGTCGACAATAGGGTCAGGGCCGGGTACTATTTTGAGCTTTACGGTAATTGCCTTGGGCTAGTAAAACCGCTTCTATACCGCAGACTCATCGAATAATGATTCCTGCAAAACGAGCACGATACGGGAGTTCCTTATGACCAGTCTAATGGTCTCAAGGGTCTCCCCCGGGGAATTACGGTGCCAAGAATGTCTCTGTAATTGACCTAAGTTGTCTGTCGATCCAGAAAATCTGACCAAGAT diff -r 134e4e78e754 -r a671907f96fe test-data/test4_rep2.fa --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/test4_rep2.fa Tue Jan 24 12:32:54 2023 +0000 @@ -0,0 +1,4 @@ +>random_sequence_length_500_1 +TCATGAACGGTAGTCAGTCAAGTTTCGCCAGCAATAGGCACAGCTTGTATGGAGGGGTTTAGTCGCCGGAGTGTTACGAGTTTGACGATCCAAAGTTGGAGTCGCCGTGATAATTAATGATATTGCGTCTTCGGTGGGCACGATGAGCCAATCTGCGTCGCACTAGTTTACGTGTTAACGTAGTGAACCTAGACATGACGGGACTATGGCAGTAAGCCGTCACAGCATGTCGGTTCCGGACCACGAGGGTCCATAAGACTAACGATCCACGCTAATTGGCGGATTTACCAAGGCGTCTTCTCTGCGTGTAAGACCCACACCGTGCCTCTGTACCTATGGACGTGCGCGACCATCTTATGATATGAGCATCACATGTTTAATAGAGCGTCCGGTGTCCCTGTAATGCCACCACTTCTGTTTCAACGGACGCTGAATCTAAGCCGATATTTTTGCCTTGATCAGAACGGGGCAGTGAAGGAGCTGCACTAAACTGGCCCTTA +>random_sequence_length_500_2 +GGATCGGATTACTAATGTTTTTCCAGTCGCCTGTTACTCCAGGCGCGGATGCGAGTGGTCTTTGCCAAGTAGCCCCATGCCACCTGTACAAGGCGGACAAACGCGGATGCGTTTGCATAAATTACCACCGTAAGATACGTTGGCGTATTGCCGTACAAAGGCGGACAGTCCAGATATTTCTTCGGATGTAATTATTGTAGGCGTGCACAACCTACTAGGCGAAAGAGCGGCCCGTTAATCGCGGGTCGCGCCGTGCCCAATTGAACACTTTGCCACGCACGTGACTGGCGGACGGCTCACACGCTATCTCCAAAAATCTACACTTCCGGAGCTAGGCTCCATGACAGGGATGTTCTTATTCAACAAGATGGAGTGCTAATATTAACAATCGACGACACAGGTGAAAAACCTCTTGTCATGTAGCTAGCAGTTATGCGGGCGTACACACTAGTGCTAATCTACTAATCATCCACGGGCCCCTGCTAGAGATCCAAAGGGGT diff -r 134e4e78e754 -r a671907f96fe test-data/test4_rep3.fa --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/test4_rep3.fa Tue Jan 24 12:32:54 2023 +0000 @@ -0,0 +1,4 @@ +>random_sequence_length_500_1 +AGAGGGAGCCTTGCGTCGGTGCTCCACGTCGTAAAGCCGTTGAGACCGCGATTACTTTGTTTATTTTCAATTCACTTGTCACAATCAGAAGGACACCGGCGACGGCCAGTTTCCATCGCCCGTCCAGGGTATCGGGGTACCTCTCTACTCGAACGTCTGCGGGGGTTTATCGGGTCTTTACAGGGGGACCAAATGGTTGGACACGGTACCTCAACGCGATAATATATGTCCTGAGTGTGATCATCGGCTGCTTGATTGACTAGTAAGTAAATAACTCCGCCCGCCGAAAGTGACCATTCTAGGAAAATACCCTCTAGCCTCTTGCTTTTGTACGGACTCACTTTCAACGTCCAGGGGTTGCGAACTAATACAGTGAAAGCGATGACCGACAGTAGCAGTTGAGTCTCCCAATGCACCGGTCCCTAACCTCAACCCGGCGTCTAGTCTGACCAGCCTATACAGATAGCAAACAACGTGGACGCGACGGACATGACGAAATA +>random_sequence_length_500_2 +GCTACTTTACCGTGCGGAAGTAGGTGGGTAGGCCCACATCCTCGTCCTTCAGTGGGCACCCATCTCTCTAAGTACATCTCAAGTGAGGAGGGCTGAGAAAATTGGACGATCTAGTGGAAGCGCGCCGAAATATGGCCTGAGTGAGATCGACCCCGAGGAGCGAGCTCGTTTTCCGAAGTTCGTTATGAGTATGGCGTTCGTTGCTGGCCGAGTACCCCCTGGTGACGTAAAGTGTTTATTTACACAGCTACTTCTCCGAACCAACGACTTATATGTGGGTCCCTGATTGCCTCCCATAGGTCCGGCATAGTTAAGAAAGTTAACGGAACCAAAGTCCAGTACATGGAGTTCTATGATAGACAGCTGTCTCCATTCCCGTATCTGCCAAAGAGATTAGATCCTAGTTGATCCCAGCAGCTACTCGTAATGACAGGATCCGGCGTGTCACTATACGACGCTTGCGGGAGGATGGTCGCCCTGCCCGTACCGTTACTTAGATC diff -r 134e4e78e754 -r a671907f96fe test-data/test5.tsv --- a/test-data/test5.tsv Tue Apr 26 15:27:01 2022 +0000 +++ b/test-data/test5.tsv Tue Jan 24 12:32:54 2023 +0000 @@ -0,0 +1,2 @@ +Genome 2seqs.bad_read.1.with_supplementary Read Count +genome1 20