Mercurial > repos > yufei-luo > s_mart
changeset 56:97aa2e42bfdf
Uploaded
line wrap: on
line diff
--- a/SMART/Java/Python/cleaning/GffCleaner.py Fri Jan 10 08:59:23 2014 -0500 +++ b/SMART/Java/Python/cleaning/GffCleaner.py Wed Feb 05 11:51:11 2014 -0500 @@ -123,7 +123,7 @@ def parse(self): progress = UnlimitedProgress(100000, "Reading input file", self.verbosity) for cpt, line in enumerate(self.inputHandle): - if not line or line[0] == "#": continue + if not line or (not line.strip()) or line[0] == "#": continue if line[0] == ">": break parsedLine = ParsedLine(line, cpt) if self.acceptedTypes == None or parsedLine.type in self.acceptedTypes:
--- a/SMART/Java/Python/cleaning/GtfCleaner.py Fri Jan 10 08:59:23 2014 -0500 +++ b/SMART/Java/Python/cleaning/GtfCleaner.py Wed Feb 05 11:51:11 2014 -0500 @@ -96,7 +96,7 @@ def parse(self): progress = UnlimitedProgress(100000, "Reading input file", self.verbosity) for cpt, line in enumerate(self.inputHandle): - if not line or line[0] == "#": continue + if not line or (not line.strip()) or line[0] == "#": continue parsedLine = ParsedLine(line, cpt) if self.acceptedTypes == None or parsedLine.type in self.acceptedTypes: transcriptId = parsedLine.transcriptId
--- a/SMART/galaxy/Clusterize.xml Fri Jan 10 08:59:23 2014 -0500 +++ b/SMART/galaxy/Clusterize.xml Wed Feb 05 11:51:11 2014 -0500 @@ -15,6 +15,8 @@ -f gff3 #elif $formatType.FormatInputFileName == 'sam': -f sam + #elif $formatType.FormatInputFileName == 'bam': + -f bam #elif $formatType.FormatInputFileName == 'gtf': -f gtf #end if @@ -32,6 +34,7 @@ <option value="gff2">gff2</option> <option value="gff3">gff3</option> <option value="sam">sam</option> + <option value="bam">bam</option> <option value="gtf">gtf</option> </param> <when value="bed"> @@ -49,6 +52,9 @@ <when value="sam"> <param name="inputFileName" format="sam" type="data" label="Input File"/> </when> + <when value="bam"> + <param name="inputFileName" format="bam" type="data" label="Input File"/> + </when> <when value="gtf"> <param name="inputFileName" format="gtf" type="data" label="Input File"/> </when>
--- a/SMART/galaxy/CollapseReads.xml Fri Jan 10 08:59:23 2014 -0500 +++ b/SMART/galaxy/CollapseReads.xml Wed Feb 05 11:51:11 2014 -0500 @@ -15,6 +15,8 @@ -f gff3 #elif $formatType.FormatInputFileName == 'sam': -f sam + #elif $formatType.FormatInputFileName == 'bam': + -f bam #elif $formatType.FormatInputFileName == 'gtf': -f gtf #end if @@ -30,6 +32,7 @@ <option value="gff2">gff2</option> <option value="gff3">gff3</option> <option value="sam">sam</option> + <option value="bam">bam</option> <option value="gtf">gtf</option> </param> <when value="bed"> @@ -47,6 +50,9 @@ <when value="sam"> <param name="inputFileName" format="sam" type="data" label="Input File"/> </when> + <when value="bam"> + <param name="inputFileName" format="bam" type="data" label="Input File"/> + </when> <when value="gtf"> <param name="inputFileName" format="gtf" type="data" label="Input File"/> </when>
--- a/SMART/galaxy/CompareOverlappingSmallQuery.xml Fri Jan 10 08:59:23 2014 -0500 +++ b/SMART/galaxy/CompareOverlappingSmallQuery.xml Wed Feb 05 11:51:11 2014 -0500 @@ -15,6 +15,8 @@ -f gff3 #elif $formatType.FormatInputFileName1 == 'sam': -f sam + #elif $formatType.FormatInputFileName1 == 'bam': + -f bam #elif $formatType.FormatInputFileName1 == 'gtf': -f gtf #end if @@ -29,6 +31,8 @@ -g gff3 #elif $formatType2.FormatInputFileName2 == 'sam': -g sam + #elif $formatType2.FormatInputFileName2 == 'bam': + -g bam #elif $formatType2.FormatInputFileName2 == 'gtf': -g gtf #end if @@ -64,6 +68,7 @@ <option value="gff2">gff2</option> <option value="gff3">gff3</option> <option value="sam">sam</option> + <option value="bam">bam</option> <option value="gtf">gtf</option> </param> <when value="bed"> @@ -81,6 +86,9 @@ <when value="sam"> <param name="inputFileName1" format="sam" type="data" label="Input File 1"/> </when> + <when value="bam"> + <param name="inputFileName1" format="bam" type="data" label="Input File 1"/> + </when> <when value="gtf"> <param name="inputFileName1" format="gtf" type="data" label="Input File 1"/> </when> @@ -93,6 +101,7 @@ <option value="gff2">gff2</option> <option value="gff3">gff3</option> <option value="sam">sam</option> + <option value="bam">bam</option> <option value="gtf">gtf</option> </param> <when value="bed"> @@ -110,6 +119,9 @@ <when value="sam"> <param name="inputFileName2" format="sam" type="data" label="Input File 2"/> </when> + <when value="bam"> + <param name="inputFileName2" format="bam" type="data" label="Input File 2"/> + </when> <when value="gtf"> <param name="inputFileName2" format="gtf" type="data" label="Input File 2"/> </when>
--- a/SMART/galaxy/CompareOverlappingSmallRef.xml Fri Jan 10 08:59:23 2014 -0500 +++ b/SMART/galaxy/CompareOverlappingSmallRef.xml Wed Feb 05 11:51:11 2014 -0500 @@ -15,6 +15,8 @@ -f gff3 #elif $formatType.FormatInputFileName1 == 'sam': -f sam + #elif $formatType.FormatInputFileName1 == 'bam': + -f bam #elif $formatType.FormatInputFileName1 == 'gtf': -f gtf #end if @@ -29,6 +31,8 @@ -g gff3 #elif $formatType2.FormatInputFileName2 == 'sam': -g sam + #elif $formatType2.FormatInputFileName2 == 'bam': + -g bam #elif $formatType2.FormatInputFileName2 == 'gtf': -g gtf #end if @@ -64,6 +68,7 @@ <option value="gff2">gff2</option> <option value="gff3">gff3</option> <option value="sam">sam</option> + <option value="bam">bam</option> <option value="gtf">gtf</option> </param> <when value="bed"> @@ -81,6 +86,9 @@ <when value="sam"> <param name="inputFileName1" format="sam" type="data" label="Input File 1"/> </when> + <when value="bam"> + <param name="inputFileName1" format="bam" type="data" label="Input File 1"/> + </when> <when value="gtf"> <param name="inputFileName1" format="gtf" type="data" label="Input File 1"/> </when> @@ -93,6 +101,7 @@ <option value="gff2">gff2</option> <option value="gff3">gff3</option> <option value="sam">sam</option> + <option value="bam">bam</option> <option value="gtf">gtf</option> </param> <when value="bed"> @@ -110,6 +119,9 @@ <when value="sam"> <param name="inputFileName2" format="sam" type="data" label="Input File 2"/> </when> + <when value="bam"> + <param name="inputFileName2" format="bam" type="data" label="Input File 2"/> + </when> <when value="gtf"> <param name="inputFileName2" format="gtf" type="data" label="Input File 2"/> </when>
--- a/SMART/galaxy/ConvertTranscriptFile.xml Fri Jan 10 08:59:23 2014 -0500 +++ b/SMART/galaxy/ConvertTranscriptFile.xml Wed Feb 05 11:51:11 2014 -0500 @@ -3,33 +3,14 @@ <requirements> <requirement type="set_environment">PYTHONPATH</requirement> </requirements> - <command interpreter="python"> ../Java/Python/convertTranscriptFile.py -i $inputFormatType.inputFileName - #if $inputFormatType.FormatInputFileName == 'gff3': - -f gff3 - #elif $inputFormatType.FormatInputFileName == 'bed': - -f bed - #elif $inputFormatType.FormatInputFileName == 'bam': - -f blast - #elif $inputFormatType.FormatInputFileName == 'sam': - -f sam - #elif $inputFormatType.FormatInputFileName == 'gtf': - -f gtf - #end if - - -g $outputFormatType.outFormat - - -n $name - $strand - -o $outputFile - - </command> + <command interpreter="python"> ../Java/Python/convertTranscriptFile.py -i $inputFormatType.inputFileName -f $inputFormatType.FormatInputFileName -g $outputFormatType.outFormat -n $name $strand -o $outputFile </command> <inputs> <conditional name="inputFormatType"> <param name="FormatInputFileName" type="select" label="Input File Format"> <option value="gff3">GFF3</option> <option value="bed">BED</option> + <option value="sam">SAM</option> <option value="bam">BAM</option> - <option value="sam">SAM</option> <option value="gtf">GTF</option> </param> <when value="gff3"> @@ -38,12 +19,12 @@ <when value="bed"> <param name="inputFileName" format="bed" type="data" label="Input File"/> </when> + <when value="sam"> + <param name="inputFileName" format="sam" type="data" label="Input File"/> + </when> <when value="bam"> <param name="inputFileName" format="bam" type="data" label="Input File"/> </when> - <when value="sam"> - <param name="inputFileName" format="sam" type="data" label="Input File"/> - </when> <when value="gtf"> <param name="inputFileName" format="gtf" type="data" label="Input File"/> </when>
--- a/SMART/galaxy/removeExonLines.xml Fri Jan 10 08:59:23 2014 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ -<tool id="removeExonLines" name="remove exon lines"> - <description>Removes the lines containing Exon.</description> - <requirements> - <requirement type="set_environment">PYTHONPATH</requirement> - </requirements> - <command interpreter="sh"> ../Java/Python/removeExonLines.sh $inputFile > $outputFile </command> - <inputs> - <param name="inputFile" type="data" label="Input File" format="gff3"/> - </inputs> - - <outputs> - <data format="gff3" name="outputFile" label="[remove exon line] output file"/> - </outputs> - - <help> - command example: sh removeExonLines.sh input.gff3 - </help> -</tool>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SMART/galaxy/removeIntrons.xml Wed Feb 05 11:51:11 2014 -0500 @@ -0,0 +1,45 @@ +<tool id="removeIntrons" name="remove introns"> + <description>Removes the introns of the transcript files.</description> + <requirements> + <requirement type="set_environment">PYTHONPATH</requirement> + </requirements> + <command interpreter="python"> ../Java/Python/RemoveExons.py -i $formatType.inputFileName -f $formatType.FormatInputFileName -o $outputFile </command> + <inputs> + <conditional name="formatType"> + <param name="FormatInputFileName1" type="select" label="query File Format"> + <option value="bed">bed</option> + <option value="gff">gff</option> + <option value="gff2">gff2</option> + <option value="gff3">gff3</option> + <option value="sam">sam</option> + <option value="gtf">gtf</option> + </param> + <when value="bed"> + <param name="inputFileName" format="bed" type="data" label="Input File 1"/> + </when> + <when value="gff"> + <param name="inputFileName" format="gff" type="data" label="Input File 1"/> + </when> + <when value="gff2"> + <param name="inputFileName" format="gff2" type="data" label="Input File 1"/> + </when> + <when value="gff3"> + <param name="inputFileName" format="gff3" type="data" label="Input File 1"/> + </when> + <when value="sam"> + <param name="inputFileName" format="sam" type="data" label="Input File 1"/> + </when> + <when value="gtf"> + <param name="inputFileName" format="gtf" type="data" label="Input File 1"/> + </when> + </conditional> + </inputs> + + <outputs> + <data format="gff3" name="outputFile" label="[remove introns] output file"/> + </outputs> + + <help> + Simply remove the introns of the input file, thus getting the unmatured transcript. + </help> +</tool>