A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/demo__contig__assembly_8cpp_source.html below:

NCBI C++ ToolKit: src/algo/align/contig_assembly/demo/demo_contig_assembly.cpp Source File

68  "Demo application testing " 69  "xalgocontig_assembly library"

);

71

arg_descr->AddPositional(

"id1"

,

"id of first sequence to align"

,

73

arg_descr->AddPositional(

"id2"

,

"id of second sequence to align"

,

75

arg_descr->AddDefaultKey(

"blast_params"

,

"parameter_string"

,

76  "Similar to what would be given to " 77  "command-line blast (single quotes respected)"

,

79

arg_descr->AddDefaultKey(

"bandwidth"

,

"bandwidth"

,

80  "list of bandwidths to try in banded alignment"

,

82

arg_descr->AddDefaultKey(

"min_frac_ident"

,

"fraction"

,

83  "minumum acceptable fraction identity"

,

85

arg_descr->AddDefaultKey(

"max_end_slop"

,

"base_pairs"

,

86  "maximum allowable unaligned bases at ends"

,

101  string

id_str1 = args[

"id1"

].AsString();

102  string

id_str2 = args[

"id2"

].AsString();

105  string

blast_params = args[

"blast_params"

].AsString();

106  double

min_frac_ident = args[

"min_frac_ident"

].AsDouble();

107  int

max_end_slop = args[

"max_end_slop"

].AsInteger();

108

vector<CRef<CSeq_align> > alns;

109

vector<unsigned int> half_widths;

110

list<string> width_strings;

112  ITERATE

(list<string>, width_string, width_strings) {

117

max_end_slop, *scope, &ostr, half_widths);

123

annot.

SetData

().SetAlign().push_back(*aln);

128

annot.

SetDesc

().Set().push_back(desc);

130

uo->

SetClass

(

"demo_contig_assembly"

);

131

uo->

SetType

().SetStr(

"alignment info"

);

135  ITERATE

(list<string>, line, lines) {

136

uf.

SetData

().SetStrs().push_back(*line);

140

annot.

SetDesc

().Set().push_back(desc);

151 int main

(

int

argc,

char

** argv)

User-defined methods of the data storage class.

User-defined methods of the data storage class.

static vector< CRef< objects::CSeq_align > > Align(const objects::CSeq_id &id0, const objects::CSeq_id &id1, const string &blast_params, double min_ident, unsigned int max_end_slop, objects::CScope &scope, CNcbiOstream *ostr=0, const vector< unsigned int > &band_halfwidths=vector< unsigned int >(1, 200), unsigned int diag_finding_window=200, unsigned int min_align_length=50, objects::ENa_strand strand0=objects::eNa_strand_unknown, objects::ENa_strand strand1=objects::eNa_strand_unknown)

Most users of the class need only to call this function.

void Init()

Initialize the application.

int Run()

Run the application.

static TRegisterLoaderInfo RegisterInObjectManager(CObjectManager &om, CReader *reader=0, CObjectManager::EIsDefault is_default=CObjectManager::eDefault, CObjectManager::TPriority priority=CObjectManager::kPriority_NotSet)

CNcbiOstrstreamToString class helps convert CNcbiOstrstream to a string Sample usage:

CUser_field & SetField(const string &str, const string &delim=".", const string &obj_subtype=kEmptyStr, NStr::ECase use_case=NStr::eCase)

Access a named field in this user object.

int main(int argc, char **argv)

virtual const CArgs & GetArgs(void) const

Get parsed command line arguments.

int AppMain(int argc, const char *const *argv, const char *const *envp=0, EAppDiagStream diag=eDS_Default, const char *conf=NcbiEmptyCStr, const string &name=NcbiEmptyString)

Main function (entry point) for the NCBI application.

virtual void SetupArgDescriptions(CArgDescriptions *arg_desc)

Setup the command line argument descriptions.

#define ITERATE(Type, Var, Cont)

ITERATE macro to sequence through container elements.

const CNcbiArguments & GetArguments(void) const

Get the application's cached unprocessed command-line arguments.

@ eDouble

Convertible into a floating point number (double)

@ eString

An arbitrary string.

@ eInteger

Convertible into an integer number (int or Int8)

@ eDS_Default

Try standard log file (app.name + ".log") in /log/, use stderr on failure.

#define MSerial_AsnText

I/O stream manipulators –.

string GetSeqIdString(bool with_version=false) const

Return seqid string with optional version for text seqid type.

static CRef< CObjectManager > GetInstance(void)

Return the existing object manager or create one.

void AddDefaults(TPriority pri=kPriority_Default)

Add default data loaders from object manager.

void Reset(void)

Reset reference object.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static list< string > & Split(const CTempString str, const CTempString delim, list< string > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL)

Split a string using specified delimiters.

static unsigned int StringToUInt(const CTempString str, TStringToNumFlags flags=0, int base=10)

Convert string to unsigned int.

@ fSplit_Tokenize

All delimiters are merged and trimmed, to get non-empty tokens only.

void SetClass(const TClass &value)

Assign a value to Class data member.

void SetType(TType &value)

Assign a value to Type data member.

void SetData(TData &value)

Assign a value to Data data member.

TTitle & SetTitle(void)

Select the variant.

void SetData(TData &value)

Assign a value to Data data member.

void SetDesc(TDesc &value)

Assign a value to Desc data member.

TUser & SetUser(void)

Select the variant.

Magic spell ;-) needed for some weird compilers... very empiric.

Defines the CNcbiApplication and CAppException classes for creating NCBI applications.

Defines command line argument related classes.

Defines unified interface to application:

#define GetProgramName

Avoid name clash with the NCBI C Toolkit.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4