50 const string & algo_options )
58 if (
format ==
"maskinfo_asn1_bin") {
60 }
else if (
format ==
"maskinfo_asn1_text") {
62 }
else if (
format ==
"maskinfo_xml") {
64 }
else if (
format ==
"interval") {
67 throw runtime_error(
"Invalid output format: " +
format);
85 throw runtime_error(
"Invalid output format!");
113 TBlastMaskLists::size_type
i = 0;
115 consolidated_list.push_back
127 consolidated_list.back()->SetMasks().push_back(sl);
151 masked_ranges.reserve(
mask.size());
153 masked_ranges.push_back
161 mask_list->
SetMasks().push_back(seqloc);
184 if (args.
Exist(
"locut") &&
185 args.
Exist(
"hicut") &&
186 args.
Exist(
"window")) {
188 os <<
"window=" << args[
"window"].AsInteger() <<
"; "
189 <<
"locut=" << args[
"locut"].AsDouble() <<
"; "
190 <<
"hicut=" << args[
"hicut"].AsDouble();
191 }
else if (args.
Exist(
"level") &&
192 args.
Exist(
"linker") &&
193 args.
Exist(
"window")) {
195 os <<
"window=" << args[
"window"].AsInteger() <<
"; "
196 <<
"level=" << args[
"level"].AsInteger() <<
"; "
197 <<
"linker=" << args[
"linker"].AsInteger();
void x_ConsolidateListOfMasks()
Consolidate the list of masks so that each element contains the masks for multiple OIDs,...
CRef< objects::CBlast_db_mask_info > m_BlastDbMaskInfo
The data type objects of this class will print.
CMaskWriterBlastDbMaskInfo(CNcbiOstream &arg_os, const string &format, int algo_id, objects::EBlast_filter_program filt_program, const string &algo_options)
Object constructor.
ESerialDataFormat m_OutputFormat
Output format for data types above.
vector< CRef< objects::CBlast_mask_list > > TBlastMaskLists
convenience typedef
virtual ~CMaskWriterBlastDbMaskInfo()
Object destructor.
TBlastMaskLists m_ListOfMasks
vector of list of masks
virtual void Print(objects::CBioseq_Handle &bsh, const TMaskList &mask, bool parsed_id=false)
Send the masking data to the output stream.
static void PrintMasks(CNcbiOstream &os, const TMaskList &mask)
Print masks only.
A base class for winmasker output writers.
CNcbiOstream & os
the standard C++ ostream object
vector< TMaskedInterval > TMaskList
A type representing the total of masking information about a sequence.
CNcbiOstrstreamToString class helps convert CNcbiOstrstream to a string Sample usage:
vector< CRange< TSeqPos > > TRanges
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
bool Exist(const string &name) const
Check existence of argument description.
#define MSerial_AsnBinary
#define MSerial_AsnText
I/O stream manipulators –.
ESerialDataFormat
Data file format.
@ eSerial_AsnText
ASN.1 text.
@ eSerial_AsnBinary
ASN.1 binary.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
void SetMore(TMore value)
Assign a value to More data member.
TMasks & SetMasks(void)
Assign a value to Masks data member.
EBlast_filter_program
This defines the possible sequence filtering algorithms to be used in a BLAST database.
@ e_Gi
GenInfo Integrated Database.
void s_WriteObject(CRef< T > obj, CNcbiOstream &os, ESerialDataFormat fmt)
string BuildAlgorithmParametersString(const CArgs &args)
Builds an algorithm options string for the filtering applications (segmasker, dustmasker) by examinin...
constexpr bool empty(list< Ts... >) noexcept
double value_type
The numeric datatype used by the parser.
const struct ncbi::grid::netcache::search::fields::SIZE size