# HG changeset patch # User john-mccallum # Date 1322093731 18000 # Node ID 16b5aa275b42407ee3d4568699f00eb724a4ccce # Parent e9f5d1afba70adfcc690850e73480775cfaa4388 Uploaded minor revision to gff converter diff -r e9f5d1afba70 -r 16b5aa275b42 MISA/misa2gff.xml --- a/MISA/misa2gff.xml Tue Nov 22 14:46:23 2011 -0500 +++ b/MISA/misa2gff.xml Wed Nov 23 19:15:31 2011 -0500 @@ -1,48 +1,48 @@ - - convert MISA to gvf/gff3 - cat $inputFile | awk '(NR > 1) {OFS="\t";print $1,"MISA","microsatellite",$6,$7,".",".",".","ID="$1":MISA:microsatellite:"$6";SSR="$4,";Type="$3}' > $outputfile - - - - - - - - - - -.. class:: infomark - -**TIP** - -This tool parses MISA columnar output to valid GFF3 format - -------------------- - -**Example** - -*input* - -:: - - ID SSR nr. SSR type SSR size start end - FW9DLND01C1Y2S 1 p2 (AC)11 22 89 110 - FW9DLND01CSIIJ 1 p2 (AC)7 14 226 239 - FW9DLND01DOGBK 1 p1 (A)12 12 162 173 - FW9DLND01B7MCF 1 p2 (AT)7 14 22 35 - FW9DLND01DHCGH 1 p2 (AT)7 14 108 121 - -*output* - -:: - - FW9DLND01C1Y2S MISA microsatellite 89 110 . . . ID=FW9DLND01C1Y2S:MISA:microsatellite:89;SSR=(AC)11 ;Type=p2 - FW9DLND01CSIIJ MISA microsatellite 226 239 . . . ID=FW9DLND01CSIIJ:MISA:microsatellite:226;SSR=(AC)7 ;Type=p2 - FW9DLND01DOGBK MISA microsatellite 162 173 . . . ID=FW9DLND01DOGBK:MISA:microsatellite:162;SSR=(A)12 ;Type=p1 - FW9DLND01B7MCF MISA microsatellite 22 35 . . . ID=FW9DLND01B7MCF:MISA:microsatellite:22;SSR=(AT)7 ;Type=p2 - FW9DLND01DHCGH MISA microsatellite 108 121 . . . ID=FW9DLND01DHCGH:MISA:microsatellite:108;SSR=(AT)7 ;Type=p2 - - - - - + + convert MISA to gvf/gff3 + cat $inputFile | awk '!/ID\W/ {OFS="\t";print $1,"MISA","microsatellite",$6,$7,".",".",".","ID="$1":MISA:microsatellite:"$6";SSR="$4,";Type="$3}' > $outputfile + + + + + + + + + + +.. class:: infomark + +**TIP** + +This tool parses MISA columnar output to valid GFF3 format + +------------------- + +**Example** + +*input* + +:: + + ID SSR nr. SSR type SSR size start end + FW9DLND01C1Y2S 1 p2 (AC)11 22 89 110 + FW9DLND01CSIIJ 1 p2 (AC)7 14 226 239 + FW9DLND01DOGBK 1 p1 (A)12 12 162 173 + FW9DLND01B7MCF 1 p2 (AT)7 14 22 35 + FW9DLND01DHCGH 1 p2 (AT)7 14 108 121 + +*output* + +:: + + FW9DLND01C1Y2S MISA microsatellite 89 110 . . . ID=FW9DLND01C1Y2S:MISA:microsatellite:89;SSR=(AC)11 ;Type=p2 + FW9DLND01CSIIJ MISA microsatellite 226 239 . . . ID=FW9DLND01CSIIJ:MISA:microsatellite:226;SSR=(AC)7 ;Type=p2 + FW9DLND01DOGBK MISA microsatellite 162 173 . . . ID=FW9DLND01DOGBK:MISA:microsatellite:162;SSR=(A)12 ;Type=p1 + FW9DLND01B7MCF MISA microsatellite 22 35 . . . ID=FW9DLND01B7MCF:MISA:microsatellite:22;SSR=(AT)7 ;Type=p2 + FW9DLND01DHCGH MISA microsatellite 108 121 . . . ID=FW9DLND01DHCGH:MISA:microsatellite:108;SSR=(AT)7 ;Type=p2 + + + + +