Skip to content
Steve Bond edited this page Oct 13, 2015 · 7 revisions

--insert_seq, -is

Description

Insert new sequence at the desired location in either all sequences or specified sequences.

Arguments

Sequence ( str )

The new sequence to be inserted

Location ( int )

The location within the input sequences that the new sequence should be inserted into. The value 0 will append to the very front of the sequences and larger numbers will place the insert deeper in.

To append to the rear of the input sequences, use negative integers. For example, -1 corresponds to the very end, while larger negative numbers shift the insert deeper into the original sequences.

Sequence IDs ( regex )

Optional. Supply one or more IDs/partial IDs to specify the sequence(s) that should be modified (regular expressions are understood).

Examples

Input file: Panx_C-terms.fa

>Mle-Panxα4
mviellagykglspfkdatv
>Mle-Panxα10A
mrlsekstshdckacitrshnedcarrwgi
>Mle-Panxα8
mvlevlalfprlapfkv
>Mle-Panxα2
mvldlisgslngflkiksv

Usage example 1 (front of all sequences)

$: sb Panx_C-terms.fa -is DYKDDDDK 0

Output

>Mle-Panxα4
DYKDDDDKmviellagykglspfkdatv
>Mle-Panxα10A
DYKDDDDKmrlsekstshdckacitrshnedcarrwgi
>Mle-Panxα8
DYKDDDDKmvlevlalfprlapfkv
>Mle-Panxα2
DYKDDDDKmvldlisgslngflkiksv

Usage example 2 (end of two sequences)

$: sb Panx_C-terms.fa -is DYKDDDDK -1 Mle-Panxα4 Mle-Panxα8

Output

>Mle-Panxα4
mviellagykglspfkdatvDYKDDDDK
>Mle-Panxα10A
mrlsekstshdckacitrshnedcarrwgi
>Mle-Panxα8
mvlevlalfprlapfkvDYKDDDDK
>Mle-Panxα2
mvldlisgslngflkiksv

Usage example 3 (specific index in some sequences. Note that 22 is longer than Mle-Panx8.)

$: sb Panx_C-terms.fa -is DYKDDDDK 22 α[18]

Output

>Mle-Panxα4
mviellagykglspfkdatv
>Mle-Panxα10A
mrlsekstshdckacitrshneDYKDDDDKdcarrwgi
>Mle-Panxα8
mvlevlalfprlapfkvDYKDDDDK
>Mle-Panxα2
mvldlisgslngflkiksv

Main Toolkit Pages





Further Reading

Clone this wiki locally