Skip to content

create_bowtie2_index

Martin Asser Hansen edited this page Oct 2, 2015 · 6 revisions

Biopiece: create_bowtie2_index

Description

[create_bowtie2_index] using sequences found in the stream.

Bowtie must be installed in order for [create_bowtie2_index] to work. Read more here:

http://bowtie-bio.sourceforge.net/bowtie2/index.shtml

Usage

... | create_bowtie2_index [options] -d <my_dir> -i <my_index>

Options

[-?          | --help]                  #  Print full usage description.
[-x          | --no_stream]             #  Do not emit records.
[-d <dir>    | --directory=<dir>]       #  Directory to cantain index files.
[-i <string> | --index_name=<string>]   #  Index name.
[-I <file!>  | --stream_in=<file!>]     #  Read input from stream file         -  Default=STDIN
[-O <file>   | --stream_out=<file>]     #  Write output to stream file         -  Default=STDOUT
[-v          | --verbose]               #  Verbose output.

Examples

To create a bowtie2 index from a FASTA file, do:

read_fasta -i <FASTA file(s)> | create_bowtie2_index -d ~/my_dir -i my_index -x

You will then get the following files:

~/my_dir/my_index.1.bt2
~/my_dir/my_index.2.bt2
~/my_dir/my_index.3.bt2
~/my_dir/my_index.4.bt2
~/my_dir/my_index.rev.1.bt2
~/my_dir/my_index.rev.2.bt2

And finally to use this new index with [bowtie_seq2], simply do:

read_fasta -i <FASTA file(s)> | bowtie2_seq -i ~/my_dir/my_index

See also

read_fasta

[bowtie2_seq]

bowtie_seq

create_bowtie_index

Author

Martin Asser Hansen - Copyright (C) - All rights reserved.

[email protected]

January 2013

License

GNU General Public License version 2

http://www.gnu.org/copyleft/gpl.html

Help

[create_bowtie2_index] is part of the Biopieces framework.

http://www.biopieces.org

Clone this wiki locally