# HG changeset patch # User iuc # Date 1518882086 18000 # Node ID 4d72d204dcfa8601f4936e838fcecb558838af52 # Parent b80c0e046539cb990a078b4d8d72a515a330a4a8 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mageck commit 2eea865fe331694058922292e5681b96f4f0b4c7 diff -r b80c0e046539 -r 4d72d204dcfa mageck_count.xml --- a/mageck_count.xml Wed Feb 14 06:42:18 2018 -0500 +++ b/mageck_count.xml Sat Feb 17 10:41:26 2018 -0500 @@ -1,5 +1,5 @@ - + - collect sgRNA read counts from read mapping files mageck_macros.xml @@ -30,16 +30,16 @@ #if str($reads.format_select) == "files": --fastq $infile -l '$reads.sgrna_library_file' -#if $reads.sample_label: - --sample-label '$reads.sample_label' -#end if - + #if $reads.sample_label: + --sample-label '$reads.sample_label' + #else: + --sample-label '$reads.sample.element_identifier' + #end if #elif str($reads.format_select) == "table": -k '$reads.counts' #if '$sgrna_library_file': -l '$sgrna_library_file' #end if - #end if -n output @@ -54,13 +54,21 @@ #if $adv.trim5: --trim-5 $adv.trim5 #end if + --norm-method $adv.norm_method + #if $adv.control_sgrna: --control-sgrna $adv.control_sgrna #end if ---sgrna-len $adv.sgrna_len + +#if $adv.sgrna_len: + --sgrna-len $adv.sgrna_len +#end if + $adv.count_n + $adv.reverse_complement + $adv.test_run #if $adv.gmt_file: @@ -81,7 +89,7 @@ - + @@ -94,12 +102,12 @@ - +
- + @@ -107,9 +115,9 @@ - + - +
@@ -125,19 +133,12 @@ out['unmappedOpt'] is True - + out['logOpt'] is True - - - - - - - @@ -145,6 +146,14 @@ + + + + + + + + @@ -181,7 +190,17 @@ **Inputs** -By default, MAGeCK count command will automatically determine the trimming length of the fastq file. +**Read file(s)** + +**MAGeCK count** accepts one or more FASTQ.GZ, FASTQ or BAM files as input. + +Since version 0.5.5, MAGeCK count module supports collecting read counts from BAM files. This will allow you to use a third-party aligner to map reads to the library with mismatches, providing more usable reads for the analysis. However, it is still recommended to directly use the fastq file in the count module (which does not allow any mismatches), because: + +* Some mismatches in the sgRNAs may have unwanted behaviors (have no on-target cleavages or have other off-target cleavages); +* In most cases the read counts are enough if we allow no mismatches; +* The mapping procedure is more complicated; for example, you need to know the exact length of 3' adapter sequence. + +It is also possible to input a Count Table to normalize counts and get statistics. **sgRNA library file** diff -r b80c0e046539 -r 4d72d204dcfa test-data/out.count.bam.txt --- a/test-data/out.count.bam.txt Wed Feb 14 06:42:18 2018 -0500 +++ b/test-data/out.count.bam.txt Sat Feb 17 10:41:26 2018 -0500 @@ -1,4 +1,4 @@ -sgRNA Gene sample1 +sgRNA Gene test1.bam s_10007 CCNA1 0 s_10008 CCNA1 0 s_10027 CCNC 0 diff -r b80c0e046539 -r 4d72d204dcfa test-data/out.count.fastq.txt --- a/test-data/out.count.fastq.txt Wed Feb 14 06:42:18 2018 -0500 +++ b/test-data/out.count.fastq.txt Sat Feb 17 10:41:26 2018 -0500 @@ -1,4 +1,4 @@ -sgRNA Gene sample1 +sgRNA Gene test1.fastq.gz s_47512 RNF111 1 s_24835 HCFC1R1 1 s_14784 CYP4B1 4