comparison htseq-count.xml @ 21:19e80c732870 draft

planemo upload for repository https://github.com/lparsons/galaxy_tools/tree/master/tools/htseq_count commit 8a40cf16ce0b48cdfda88a505869e77e8826cb23
author lparsons
date Mon, 22 Jun 2015 16:57:03 -0400
parents 6b61ba6dd9e2
children dee20b55f360
comparison
equal deleted inserted replaced
20:6b61ba6dd9e2 21:19e80c732870
29 #set $reference_fasta_filename = str( $samout_conditional.reference_source.ref_file.fields.path ) 29 #set $reference_fasta_filename = str( $samout_conditional.reference_source.ref_file.fields.path )
30 #end if 30 #end if
31 #end if 31 #end if
32 #if $force_sort: 32 #if $force_sort:
33 #if $samfile.extension == 'bam': 33 #if $samfile.extension == 'bam':
34 samtools sort -n $samfile "name_sorted_alignment" && 34 samtools sort -n "$samfile" "name_sorted_alignment" &&
35 #else 35 #else
36 samtools view -Su -t ${reference_fasta_filename}.fai $samfile | samtools sort -n - "name_sorted_alignment" && 36 samtools view -Su -t ${reference_fasta_filename}.fai "$samfile" | samtools sort -n - "name_sorted_alignment" &&
37 #end if 37 #end if
38 #end if 38 #end if
39 htseq-count 39 htseq-count
40 --mode=$mode 40 --mode=$mode
41 --stranded=$stranded 41 --stranded=$stranded
42 --minaqual=$minaqual 42 --minaqual=$minaqual
43 --type=$featuretype 43 --type="$featuretype"
44 --idattr=$idattr 44 --idattr="$idattr"
45 #if $samout_conditional.samout: 45 #if $samout_conditional.samout:
46 --samout=$__new_file_path__/${samoutfile.id}_tmp 46 --samout=$__new_file_path__/${samoutfile.id}_tmp
47 #end if 47 #end if
48 #if $force_sort: 48 #if $force_sort:
49 --order=name 49 --order=name
52 #else 52 #else
53 --order=pos 53 --order=pos
54 --format=$samfile.extension 54 --format=$samfile.extension
55 $samfile 55 $samfile
56 #end if 56 #end if
57 $gfffile 57 "$gfffile"
58 | awk '{if ($1 ~ "no_feature|ambiguous|too_low_aQual|not_aligned|alignment_not_unique") print $0 | "cat 1>&2"; else print $0}' > $counts 2>$othercounts 58 | awk '{if ($1 ~ "no_feature|ambiguous|too_low_aQual|not_aligned|alignment_not_unique") print $0 | "cat 1>&2"; else print $0}' > $counts 2>$othercounts
59 #if $samout_conditional.samout: 59 #if $samout_conditional.samout:
60 && samtools view -Su -t ${reference_fasta_filename}.fai $__new_file_path__/${samoutfile.id}_tmp | samtools sort -o - sorted > $samoutfile 60 && samtools view -Su -t ${reference_fasta_filename}.fai $__new_file_path__/${samoutfile.id}_tmp | samtools sort -o - sorted > $samoutfile
61 #end if 61 #end if
62 ]]> 62 ]]>
63 </command> 63 </command>
64 64
65 <inputs> 65 <inputs>
66 <param format="sam,bam" name="samfile" type="data" label="Aligned SAM/BAM File"/> 66 <param format="sam,bam" name="samfile" type="data" label="Aligned SAM/BAM File"/>
67 <param format="gff" name="gfffile" type="data" label="GFF File"/> 67 <param format="gff" name="gfffile" type="data" label="GFF File"/>
68 <param name="mode" type="select" label="Mode"> 68 <param name="mode" type="select" label="Mode" help="(--mode)">
69 <help>Mode to handle reads overlapping more than one feature.</help> 69 <help>Mode to handle reads overlapping more than one feature.</help>
70 <option value="union" selected="true">Union</option> 70 <option value="union" selected="true">Union</option>
71 <option value="intersection-strict">Intersection (strict)</option> 71 <option value="intersection-strict">Intersection (strict)</option>
72 <option value="intersection-nonempty">Intersection (nonempty)</option> 72 <option value="intersection-nonempty">Intersection (nonempty)</option>
73 </param> 73 </param>
74 <param name="stranded" type="select" label="Stranded"> 74 <param name="stranded" type="select" label="Stranded" help="(--stranded)">
75 <help>Specify whether the data is from a strand-specific assay. 'Reverse' means yes with reversed strand interpretation.</help> 75 <help>Specify whether the data is from a strand-specific assay. 'Reverse' means yes with reversed strand interpretation.</help>
76 <option value="yes" selected="true">Yes</option> 76 <option value="yes" selected="true">Yes</option>
77 <option value="no">No</option> 77 <option value="no">No</option>
78 <option value="reverse">Reverse</option> 78 <option value="reverse">Reverse</option>
79 </param> 79 </param>
80 <param name="minaqual" type="integer" value="10" label="Minimum alignment quality"> 80 <param name="minaqual" type="integer" value="10" label="Minimum alignment quality">
81 <help>Skip all reads with alignment quality lower than the given minimum value</help> 81 <help>Skip all reads with alignment quality lower than the given minimum value. (-minaqual)</help>
82 </param> 82 </param>
83 <param name="featuretype" type="text" value="exon" label="Feature type"> 83 <param name="featuretype" type="text" value="exon" label="Feature type">
84 <help>Feature type (3rd column in GFF file) to be used. All features of other types are ignored. The default, suitable for RNA-Seq and Ensembl GTF files, is exon.</help> 84 <help>Feature type (3rd column in GFF file) to be used. All features of other types are ignored. The default, suitable for RNA-Seq and Ensembl GTF files, is exon. (--type)</help>
85 </param> 85 </param>
86 <param name="idattr" type="text" value="gene_id" label="ID Attribute"> 86 <param name="idattr" type="text" value="gene_id" label="ID Attribute">
87 <help>GFF attribute to be used as feature ID. Several GFF lines with the same feature ID will be considered as parts of the same feature. The feature ID is used to identity the counts in the output table. All features of the specified type MUST have a value for this attribute. The default, suitable for RNA-Seq and Ensembl GTF files, is gene_id.</help> 87 <help>GFF attribute to be used as feature ID. Several GFF lines with the same feature ID will be considered as parts of the same feature. The feature ID is used to identity the counts in the output table. All features of the specified type MUST have a value for this attribute. The default, suitable for RNA-Seq and Ensembl GTF files, is gene_id.</help>
88 </param> 88 </param>
89 <conditional name="samout_conditional"> 89 <conditional name="samout_conditional">