DOKK / manpages / debian 10 / obitools / obiextract.1.en
OBIEXTRACT(1) OBITools OBIEXTRACT(1)

obiextract - description of obiextract

The obiextract command extract a subset of samples from a complete dataset.

Extracted sample names can be specified or by indicating their names using option on the command line or by indicating a file name containing a sample name per line

The count attribute of the sequence and the slot describing distribution of the sample occurrences among samples are modified according to the selected samples.

A sequence not present in at least one of the selected samples is not conserved in the output of obiextract.

Attribute containing sample descriptions. By default the attribute name used for describing samples is set to merged_sample.

Attribute indicating which <SAMPLE_NAME> have to be extracted. Several -p options can be added for specifying several samples. If you want to extract a large number of samples, please refer to the -E option described below

TIP:

The <KEY> can be simply the key of an attribute, or a Python expression similarly to the -p option of obigrep.




Example:

> obiextract -e sampleA -e sampleB allseqs.fasta > samplesAB.fasta


This command extracts from the allseqs.fasta file data related to samples A and B.




Allows for indicating a file name where a list of sample is stored. The file must be a simple text file with a sample name per line.


Example:

> obiextract -E subset.txt allseqs.fasta > subset_samples.fasta


This command extracts from the allseqs.fasta file data related to samples listed in the subset.txt file.




The N first sequence records of the file are discarded from the analysis and not reported to the output file

Only the N next sequence records of the file are analyzed. The following sequences in the file are neither analyzed, neither reported to the output file. This option can be used conjointly with the –skip option.

Input file is in genbank format.

Input file is in embl format.

Input file is in fasta format (including OBITools fasta extensions).

Input file is in Sanger fastq format (standard fastq used by HiSeq/MiSeq sequencers).

Input file is in fastq format produced by Solexa (Ga IIx) sequencers.

Input file is in ecoPCR format.

Input is an ecoPCR database.

Input file contains nucleic sequences.

Input file contains protein sequences.

--fasta-output
Output sequences in OBITools fasta format

Output sequences in Sanger fastq format

--ecopcrdb-output=<PREFIX_FILENAME>
Creates an ecoPCR database from sequence records results

Print sequences in upper case (default is lower case)

Shows this help message and exits.

Sets logging in debug mode.

count



count



The OBITools Development Team - LECA

2019 - 2015, OBITool Development Team

January 28, 2019 1.02 12