Skip to content

SB Order features by position

Steve Bond edited this page Oct 15, 2015 · 3 revisions

--order_features_by_position, -ofp

Description

Re-order all sequence features by their start position.

Argument

Reverse ( str )

Optional. Passing in the word 'rev' will reverse the sort order.

Examples

Input file: Mle-Panxα3.gb

LOCUS       Mle-Panxα3               412 aa                     UNA 02-JAN-2015
DEFINITION  cDNA - ML036514a.
ACCESSION   Mle-Panxα3
VERSION     Mle-Panxα3
KEYWORDS    .
SOURCE      
  ORGANISM  . . . . . .
            .
FEATURES             Location/Qualifiers
     TMD1            29..49
     TMD2            132..152
     TMD3            218..238
     TMD4            302..332
     MYRISTYL        6..10
     MYRISTYL        9..13
     PANNEXIN        18..399
     MYRISTYL        42..46
     TYR_PHOSPHO_SIT 188..193
     MYRISTYL        204..208
     MYRISTYL        215..219
ORIGIN
        1 mlllgslgti knlsifkdls lddwldqmnr tfmflllcfm gtivavsqyt gkniscdgft
       61 kfgedfsqdy cwtqglytik eaydlpesqi pypgiipenv pacrehalkn ggkivcpped
      121 qvkpltrarh lwyqwipfyf wviapvfylp ymfvkrmgld rmkpllkims dyyhcttetp
      181 seeiivkcad wvynsivdrl segsswtswr nrhglglavl vskfmylggs vlvmmmttlm
      241 fqvgdfktyg iewlrqfpnp enystsvkhk lfpkmvacei krwgttglee engmcvlapn
      301 viyqyiflim wfalaitict nfgniffylf kltatrytyn klvatghfsh khpgwkfmyy
      361 rigtsgrvll nivaqntnpi ifgaimeklt psvikhlrig hvpgeyltdp a*
//

Usage example 1

$: sb Mle-Panxα3.gb -ofp

Output

LOCUS       Mle-Panxα3               412 aa                     UNA 02-JAN-2015
DEFINITION  cDNA - ML036514a.
ACCESSION   Mle-Panxα3
VERSION     Mle-Panxα3
KEYWORDS    .
SOURCE      
  ORGANISM  . . . . . . .
            .
FEATURES             Location/Qualifiers
     MYRISTYL        6..10
     MYRISTYL        9..13
     PANNEXIN        18..399
     TMD1            29..49
     MYRISTYL        42..46
     TMD2            132..152
     TYR_PHOSPHO_SIT 188..193
     MYRISTYL        204..208
     MYRISTYL        215..219
     TMD3            218..238
     TMD4            302..332
ORIGIN
        1 mlllgslgti knlsifkdls lddwldqmnr tfmflllcfm gtivavsqyt gkniscdgft
       61 kfgedfsqdy cwtqglytik eaydlpesqi pypgiipenv pacrehalkn ggkivcpped
      121 qvkpltrarh lwyqwipfyf wviapvfylp ymfvkrmgld rmkpllkims dyyhcttetp
      181 seeiivkcad wvynsivdrl segsswtswr nrhglglavl vskfmylggs vlvmmmttlm
      241 fqvgdfktyg iewlrqfpnp enystsvkhk lfpkmvacei krwgttglee engmcvlapn
      301 viyqyiflim wfalaitict nfgniffylf kltatrytyn klvatghfsh khpgwkfmyy
      361 rigtsgrvll nivaqntnpi ifgaimeklt psvikhlrig hvpgeyltdp a*
//

Usage example 2

$: sb Mle-Panxα3.gb -ofp 'rev'

Output

LOCUS       Mle-Panxα3               412 aa                     UNA 02-JAN-2015
DEFINITION  cDNA - ML036514a.
ACCESSION   Mle-Panxα3
VERSION     Mle-Panxα3
KEYWORDS    .
SOURCE      
  ORGANISM  . . . . . . .
            .
FEATURES             Location/Qualifiers
     TMD4            302..332
     TMD3            218..238
     MYRISTYL        215..219
     MYRISTYL        204..208
     TYR_PHOSPHO_SIT 188..193
     TMD2            132..152
     MYRISTYL        42..46
     TMD1            29..49
     PANNEXIN        18..399
     MYRISTYL        9..13
     MYRISTYL        6..10
ORIGIN
        1 mlllgslgti knlsifkdls lddwldqmnr tfmflllcfm gtivavsqyt gkniscdgft
       61 kfgedfsqdy cwtqglytik eaydlpesqi pypgiipenv pacrehalkn ggkivcpped
      121 qvkpltrarh lwyqwipfyf wviapvfylp ymfvkrmgld rmkpllkims dyyhcttetp
      181 seeiivkcad wvynsivdrl segsswtswr nrhglglavl vskfmylggs vlvmmmttlm
      241 fqvgdfktyg iewlrqfpnp enystsvkhk lfpkmvacei krwgttglee engmcvlapn
      301 viyqyiflim wfalaitict nfgniffylf kltatrytyn klvatghfsh khpgwkfmyy
      361 rigtsgrvll nivaqntnpi ifgaimeklt psvikhlrig hvpgeyltdp a*
//

Main Toolkit Pages





Further Reading

Clone this wiki locally