# HG changeset patch # User iuc # Date 1630397263 0 # Node ID 56aa64c236905831cd1e97c8428069d8a3b64d5d # Parent 3cd88f5c9d4ca0de8a7a7458cd9b42ab3d5f9cc2 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/featurecounts commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7" diff -r 3cd88f5c9d4c -r 56aa64c23690 featurecounts.xml --- a/featurecounts.xml Mon Aug 30 13:47:16 2021 +0000 +++ b/featurecounts.xml Tue Aug 31 08:07:43 2021 +0000 @@ -1,10 +1,12 @@ - Measure gene expression in RNA-Seq experiments from SAM or BAM files. + Measure gene expression in RNA-Seq experiments from SAM or BAM files 2.0.1 1 - + + subread + subread samtools @@ -281,8 +283,8 @@ - - + + @@ -293,8 +295,8 @@ truevalue="--fraction" falsevalue="" argument="--fraction" - label="Assign fractions to multi-mapping reads" - help="If specified, a fractional count 1/x will be generated for each multi-mapping read, where x is the number of alignments (indicated by 'NH' tag) reported for the read."/> + label="Assign fractions to multimapping reads" + help="If specified, a fractional count 1/n will be generated for each multi-mapping read, where n is the number of alignments (indica- ted by 'NH' tag) reported for the read."/> + label="Assign fractions to multimapping reads" + help="If specified, a fractional count 1/n will be generated for each multi-overlapping read, where n is the number of alignments (indica- ted by 'NH' tag) reported for the read."/> + label="Assign fractions to multimapping reads" + help="If specified, a fractional count 1/n will be generated for each multi-mapping or multi-overlapping read, where n is the number of alignments (indica- ted by 'NH' tag) reported for the read."/> diff -r 3cd88f5c9d4c -r 56aa64c23690 featurecounts.xml.orig --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/featurecounts.xml.orig Tue Aug 31 08:07:43 2021 +0000 @@ -0,0 +1,635 @@ +<<<<<<< HEAD + + Measure gene expression in RNA-Seq experiments from SAM or BAM files. + + 2.0.1 + 1 + + +======= + + Measure gene expression in RNA-Seq experiments from SAM or BAM files + + subread + +>>>>>>> d0c3b656f (add bio.tools ID) + + subread + samtools + coreutils + + + featureCounts -v 2>&1 | grep . + + + $extended_parameters.exon_exon_junction_read_counting_enabled.count_exon_exon_junction_reads + #if str($extended_parameters.exon_exon_junction_read_counting_enabled.count_exon_exon_junction_reads) == "-J": + #if $extended_parameters.exon_exon_junction_read_counting_enabled.genome: + -G '$extended_parameters.exon_exon_junction_read_counting_enabled.genome' + #end if + #end if + + $extended_parameters.long_reads + + $extended_parameters.by_read_group + + -Q $extended_parameters.mapping_quality + $extended_parameters.largest_overlap + --minOverlap $extended_parameters.min_overlap + --fracOverlap $extended_parameters.frac_overlap + --fracOverlapFeature $extended_parameters.frac_overlap_feature + $extended_parameters.read_reduction + $extended_parameters.primary + $extended_parameters.ignore_dup + #if $extended_parameters.R: + $extended_parameters.R + #end if + #if str($extended_parameters.read_extension_5p) != "0": + --readExtension5 $extended_parameters.read_extension_5p + #end if + + #if str($extended_parameters.read_extension_3p) != "0": + --readExtension3 $extended_parameters.read_extension_3p + #end if + + $pe_parameters.fragment_counting_enabled.fragment_counting + #if str($pe_parameters.fragment_counting_enabled.fragment_counting) == " -p": + $pe_parameters.fragment_counting_enabled.check_distance_enabled.check_distance + #if str($pe_parameters.fragment_counting_enabled.check_distance_enabled.check_distance) == " -P": + -d $pe_parameters.fragment_counting_enabled.check_distance_enabled.minimum_fragment_length + -D $pe_parameters.fragment_counting_enabled.check_distance_enabled.maximum_fragment_length + #end if + #end if + + $pe_parameters.only_both_ends + $pe_parameters.exclude_chimerics + + '${alignment}' + + ## Remove comment and add sample name to header + && grep -v "^#" "output" + | sed -e 's|${alignment}|${alignment.element_identifier}|g' + > body.txt + ## Set the right columns for the tabular formats + #if $format.value == "tabdel_medium": + && cut -f 1,7 body.txt > expression_matrix.txt + + ## Paste doesn't allow a non ordered list of columns: -f 1,7,8,6 will only return columns 1,7 and 8 + ## Thus the gene length column (last column) has to be added separately + && cut -f 6 body.txt > gene_lengths.txt + && paste expression_matrix.txt gene_lengths.txt > expression_matrix.txt.bak + && mv -f expression_matrix.txt.bak '${output_medium}' + #elif $format.value == "tabdel_short": + && cut -f 1,7 body.txt > '${output_short}' + #else: + && cp body.txt '${output_full}' + #end if + + #if str($include_feature_length_file) == "true": + && cut -f 1,6 body.txt > '${output_feature_lengths}' + #end if + + #if str($extended_parameters.exon_exon_junction_read_counting_enabled.count_exon_exon_junction_reads) == "-J": + && sed -e 's|${alignment}|${alignment.element_identifier}|g' 'output.jcounts' > '${output_jcounts}' + #end if + + #if $extended_parameters.R: + && samtools sort --no-PG -o '$output_bam' -@ \${GALAXY_SLOTS:-2} -T "\${TMPDIR:-.}" *.featureCounts.bam + #end if + && sed -e 's|${alignment}|${alignment.element_identifier}|g' 'output.summary' > '${output_summary}' + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + format == "tabdel_medium" + + + + + + + extended_parameters['R'] + + + + format == "tabdel_short" + + + + + + + format == "tabdel_full" + + + + + + + + + + + + + include_feature_length_file + + + + + + + extended_parameters['exon_exon_junction_read_counting_enabled']['count_exon_exon_junction_reads'] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + Requirements`. To create the files, the annotations were downloaded from NCBI RefSeq database and then adapted by merging overlapping exons from the same gene to form a set of disjoint exons for each gene. Genes with the same Entrez gene identifiers were also merged into one gene. See the `Subread User's Guide`_ for more information. Gene names can be obtained for these Entrez identifiers with the Galaxy **annotateMyIDs** tool. + +Output format +------------- +FeatureCounts produces a table containing counted reads, per gene, per row. Optionally the last column can be set to be the effective gene-length. These tables are compatible with the DESeq2, edgeR and limma-voom Galaxy wrappers by IUC. + +.. _Subread: http://subread.sourceforge.net/ +.. _`Subread User's Guide`: http://bioinf.wehi.edu.au/subread-package/SubreadUsersGuide.pdf +.. _`Subread package`: https://sourceforge.net/projects/subread/files/ + ]]> + + 10.1093/bioinformatics/btt656 + +