⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 blast_options.h

📁 ncbi源码
💻 H
📖 第 1 页 / 共 3 页
字号:
 */Int2 BlastExtensionParametersNew(Uint1 blast_program,         const BlastExtensionOptions* options,         BlastScoreBlk* sbp, BlastQueryInfo* query_info,         BlastExtensionParameters* *parameters);/** Deallocate memory for BlastExtensionParameters.  * @param parameters Structure to free [in] */BlastExtensionParameters*BlastExtensionParametersFree(BlastExtensionParameters* parameters);/**  Deallocate memory for BlastScoringOptions.  * @param options Structure to free [in] */BlastScoringOptions* BlastScoringOptionsFree(BlastScoringOptions* options);/** Allocate memory for BlastScoringOptions and fill with default values.  * @param program Program number (blastn, blastp, etc.) [in] * @param options The options that are being returned [out]*/Int2 BlastScoringOptionsNew(Uint1 program, BlastScoringOptions* *options);/** Fill non-default values in the BlastScoringOptions structure.  * @param options The options structure [in] [out] * @param program Program number (blastn, blastp, etc.) [in] * @param greedy_extension Is greedy extension algorithm used? [in] * @param penalty Mismatch penalty score (blastn only) [in] * @param reward Match reward score (blastn only) [in] * @param matrix Name of the BLAST matrix (all except blastn) [in] * @param gap_open Extra cost for opening a gap [in] * @param gap_extend Cost of a gap [in]*/Int2 BLAST_FillScoringOptions(BlastScoringOptions* options, Uint1 program,    Boolean greedy_extension, Int4 penalty, Int4 reward, const char *matrix,    Int4 gap_open, Int4 gap_extend);/** Validate contents of BlastScoringOptions. * @param program_number Type of BLAST program [in] * @param options Options to be validated [in] * @param blast_msg Describes any validation problems found [out]*/Int2BlastScoringOptionsValidate(Uint1 program_number,    const BlastScoringOptions* options, Blast_Message* *blast_msg);/** Produces copy of "old" options, with new memory allocated. * @param new_opt Contains copied BlastScoringOptions upon return [out] * @param old_opt BlastScoringOptions to be copied [in]*/Int2 BlastScoringOptionsDup(BlastScoringOptions* *new_opt, const BlastScoringOptions* old_opt);/**  Deallocate memory for BlastScoringParameters. * @param parameters Structure to free [in] */BlastScoringParameters* BlastScoringParametersFree(                                     BlastScoringParameters* parameters);/** Calculate scaled cutoff scores and gap penalties * @param options Already allocated scoring options [in] * @param sbp Structure containing scale factor [in] * @param parameters Scoring parameters [out] */Int2 BlastScoringParametersNew(const BlastScoringOptions *options,                               BlastScoreBlk* sbp,                                BlastScoringParameters* *parameters);/** Deallocate memory for BlastEffectiveLengthsOptions*.  * @param options Structure to free [in] */BlastEffectiveLengthsOptions* BlastEffectiveLengthsOptionsFree(BlastEffectiveLengthsOptions* options);/** Allocate memory for BlastEffectiveLengthsOptions* and fill with  * default values.  * @param options The options that are being returned [out] */Int2 BlastEffectiveLengthsOptionsNew(BlastEffectiveLengthsOptions* *options);/** Deallocate memory for BlastEffectiveLengthsParameters*.  * @param parameters Structure to free [in] */BlastEffectiveLengthsParameters* BlastEffectiveLengthsParametersFree(BlastEffectiveLengthsParameters* parameters);/** Allocate memory for BlastEffectiveLengthsParameters  * @param options The user provided options [in] * @param db_length The database length [in] * @param num_seqs Number of sequences in database [in] * @param parameters The parameters structure returned [out] */Int2 BlastEffectiveLengthsParametersNew(const BlastEffectiveLengthsOptions* options,                                Int8 db_length, Int4 num_seqs,                               BlastEffectiveLengthsParameters* *parameters);/** Fill the non-default values in the BlastEffectiveLengthsOptions structure. * @param options The options [in] [out] * @param dbseq_num Number of sequences in the database (if zero real value will be used) [in] * @param db_length Total length of the database (if zero real value will be used) [in] * @param searchsp_eff Effective search space (if zero real value will be used) [in] */Int2 BLAST_FillEffectiveLengthsOptions(BlastEffectiveLengthsOptions* options,    Int4 dbseq_num, Int8 db_length, Int8 searchsp_eff);/** Allocate memory for lookup table options and fill with default values. * @param program Program number (blastn, blastp, etc.) [in] * @param options The options that are being returned [out] */Int2 LookupTableOptionsNew(Uint1 program, LookupTableOptions* *options);/** Auxiliary function that calculates best database scanning stride for the * given parameters. * @param word_size Length of the exact match required to trigger  *                  extensions [in] * @param var_words If true, and word_size is divisible by 4, partial bytes  *                  need not be checked to test the length of the  *                  exact match [in] * @param lut_type  What kind of lookup table is used (based on 4-mers, 8-mers  *                  or 12-mers) [in] * @return          The stride necessary to find all exact matches of a given *                  word size. */Int4 CalculateBestStride(Int4 word_size, Boolean var_words, Int4 lut_type);/** Allocate memory for lookup table options and fill with default values. * @param options The options [in] [out] * @param program Program number (blastn, blastp, etc.) [in] * @param is_megablast Megablast (instead of blastn) if TRUE [in] * @param threshold Threshold value for finding neighboring words [in] * @param word_size Number of matched residues in an initial word [in] * @param ag_blast Is AG BLAST approach to database scanning used? [in] * @param variable_wordsize Are only full bytes of a compressed sequence  *        checked to find initial words? [in] * @param use_pssm Use PSSM rather than (protein) query to build lookup table. */Int2 BLAST_FillLookupTableOptions(LookupTableOptions* options,    Uint1 program, Boolean is_megablast, Int4 threshold,   Int2 word_size, Boolean ag_blast, Boolean variable_wordsize,   Boolean use_pssm);/** Deallocates memory for LookupTableOptions*. * @param options Structure to free [in] */LookupTableOptions*LookupTableOptionsFree(LookupTableOptions* options);/** Validate LookupTableOptions. * @param program_number BLAST program [in] * @param options The options that have are being returned [in] * @param blast_msg The options that have are being returned [out]*/Int2LookupTableOptionsValidate(Uint1 program_number,    const LookupTableOptions* options,  Blast_Message* *blast_msg);/** Deallocate memory for BlastHitSavingOptions.  * @param options Structure to free [in] */BlastHitSavingOptions*BlastHitSavingOptionsFree(BlastHitSavingOptions* options);/** Validate BlastHitSavingOptions * @param program_number BLAST program [in] * @param options The options that have are being returned [in] * @param blast_msg The options that have are being returned [out]*/Int2BlastHitSavingOptionsValidate(Uint1 program_number,   const BlastHitSavingOptions* options, Blast_Message* *blast_msg);/** Allocate memory for BlastHitSavingOptions. * @param program Program number (blastn, blastp, etc.) [in] * @param options The options that are being returned [out]*/Int2 BlastHitSavingOptionsNew(Uint1 program,         BlastHitSavingOptions* *options);/** Allocate memory for BlastHitSavingOptions. * @param options The options [in] [out] * @param evalue The expected value threshold [in] * @param hitlist_size How many database sequences to save per query? [in]*/Int2BLAST_FillHitSavingOptions(BlastHitSavingOptions* options,                            double evalue, Int4 hitlist_size);/** Deallocate memory for BlastHitSavingOptions*.  * @param parameters Structure to free [in] */BlastHitSavingParameters*BlastHitSavingParametersFree(BlastHitSavingParameters* parameters);/** Allocate memory and initialize the BlastHitSavingParameters structure.  * Calculates the (raw) score cutoff given an expect value and puts * it in the "cutoff_score" field of the returned BlastHitSavingParameters* * * @param program_number Number of the BLAST program [in] * @param options The given hit saving options [in] * @param ext_params Extension parameters containing the gap trigger value [in] * @param sbp Scoring block, needed for calculating score cutoff from  *            e-value [in] * @param query_info Query information, needed for calculating score cutoff  *                   from e-value [in] * @param parameters Resulting parameters [out] */Int2 BlastHitSavingParametersNew(Uint1 program_number,         const BlastHitSavingOptions* options,         const BlastExtensionParameters* ext_params,        BlastScoreBlk* sbp, BlastQueryInfo* query_info,         BlastHitSavingParameters* *parameters);/** Updates cutoff scores in hit saving parameters.  * @param program_number Number of the BLAST program [in] * @param ext_params Extension parameters containing the gap trigger  *                   value [in] * @param sbp Scoring block, needed for calculating score cutoff from  *            e-value [in] * @param query_info Query information, needed for calculating score cutoff  *                   from e-value [in] * @param parameters Preallocated parameters [in] [out] */Int2 BlastHitSavingParametersUpdate(Uint1 program_number,         const BlastExtensionParameters* ext_params,        BlastScoreBlk* sbp, BlastQueryInfo* query_info,         BlastHitSavingParameters* parameters);/** Initialize default options for PSI BLAST */Int2 PSIBlastOptionsNew(PSIBlastOptions** psi_options);/** Deallocate PSI BLAST options */PSIBlastOptions* PSIBlastOptionsFree(PSIBlastOptions* psi_options);/** Allocates the BlastDatabase options structure and sets the default * database genetic code value (BLAST_GENETIC_CODE). Genetic code string in * ncbistdaa must be populated by client code */Int2 BlastDatabaseOptionsNew(BlastDatabaseOptions** db_options);/** Deallocate database options */BlastDatabaseOptions* BlastDatabaseOptionsFree(BlastDatabaseOptions* db_options);/** Initialize all the BLAST search options structures with the default * values. * @param blast_program Type of blast program: blastn, blastp, blastx,  *                      tblastn, tblastx) [in] * @param lookup_options Lookup table options [out] * @param query_setup_options Query options [out] * @param word_options Initial word processing options [out] * @param ext_options Extension options [out] * @param hit_options Hit saving options [out] * @param score_options Scoring options [out] * @param eff_len_options Effective length options [out] * @param protein_options Protein BLAST options [out] * @param db_options BLAST database options [out] */Int2 BLAST_InitDefaultOptions(Uint1 blast_program,   LookupTableOptions** lookup_options,   QuerySetUpOptions** query_setup_options,    BlastInitialWordOptions** word_options,   BlastExtensionOptions** ext_options,   BlastHitSavingOptions** hit_options,   BlastScoringOptions** score_options,   BlastEffectiveLengthsOptions** eff_len_options,   PSIBlastOptions** protein_options,   BlastDatabaseOptions** db_options);/** Validate all options */Int2 BLAST_ValidateOptions(Uint1 program_number,                           const BlastExtensionOptions* ext_options,                           const BlastScoringOptions* score_options,                            const LookupTableOptions* lookup_options,                            const BlastHitSavingOptions* hit_options,                           Blast_Message* *blast_msg);/** Calculates cutoff scores and returns them. *	Equations provided by Stephen Altschul. * @param program BLAST program type [in] * @param query_info Query(ies) information [in] * @param sbp Scoring statistical parameters [in] * @param hit_params Hit saving parameters, including all cutoff  *                   scores [in] [out] * @param ext_params Extension parameters (gap_trigger used) [in] * @param db_length Total length of database (non-database search if 0) [in] * @param subject_length Length of the subject sequence. [in] * */voidCalculateLinkHSPCutoffs(Uint1 program, BlastQueryInfo* query_info,    BlastScoreBlk* sbp, BlastHitSavingParameters* hit_params,    BlastExtensionParameters* ext_params,   Int8 db_length, Int4 subject_length);#ifdef __cplusplus}#endif#endif /* !__BLASTOPTIONS__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -