Skip to content

Commit a23c37f

Browse files
authored
Update fasta.h
1 parent 90647e7 commit a23c37f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

IsoSpec++/fasta.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ extern const double aa_elem_probabilities[19];
3030

3131
extern const int aa_symbol_to_elem_counts[256*6];
3232

33-
//! Count elemental composition of an unmodificed sequence of amino acids.
33+
//! Count elemental composition of an unmodificed sequence of amino acids, resulting in CHNOSSe counts.
3434
/*!
35-
WARNING!!! This function does deal with any questions regarding Water.
36-
If you pass in a sequence (from a fasta, but someone here does not discern between the two), add water yourself. If you pass in a b or y fragment, add water yourself.
35+
WARNING!!! This function does not add the terminating H and OH groups, resulting in a residue backbone skeleton formula.
36+
If you don't know what that means, you should probably be using parse_fasta_full function.
3737
*/
3838
inline void parse_fasta(const char* fasta, int atomCounts[6])
3939
{
@@ -47,11 +47,11 @@ inline void parse_fasta(const char* fasta, int atomCounts[6])
4747
}
4848
}
4949

50-
//! Count elemental composition of an unmodified (stripped and hot) sequeqnce.
50+
//! Turn an input FASTA aminoacid sequence into atom counts, in CHNOSSe order.
5151
/*!
52-
This function adds the missing water.
52+
Unlike parse_fasta, this function includes the H and OH groups at the N- and C- termini of the skeleton, resulting in a formula of a full (inert) molecule.
5353
*/
54-
inline void atom_counts_from_unmodified_sequence(const char* fasta, int atomCounts[6])
54+
inline void parse_fasta_full(const char* fasta, int atomCounts[6])
5555
{
5656
parse_fasta(fasta, atomCounts)
5757
// Add terminal water (H2O) for either precursor or fragment.

0 commit comments

Comments
 (0)