Skip to content

Commit

Permalink
Fixed formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
douweschulte committed Sep 6, 2024
1 parent 0a47e8f commit 41182cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rustyms/src/identification/fasta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,19 @@ impl FastaData {
let parsed = CompoundPeptidoform::pro_forma(&line, None)
.map_err(|e| e.overwrite_line_number(line_index))?
.singular()
.ok_or_else(||
.ok_or_else(||
CustomError::error(
"Invalid fasta sequence",
"A sequence in a Fasta file is assumed to be a single peptide and not a chimeric compound peptidoform",
Context::full_line(line_index, line.clone())))
.and_then(|p|
p.singular().ok_or_else(||
.and_then(|p|
p.singular().ok_or_else(||
CustomError::error(
"Invalid fasta sequence",
"A sequence in a Fasta file is assumed to be a single peptide and not a cross linked peptidoform",
Context::full_line(line_index, line.clone())))
)
.and_then(|p| p.into_semi_ambiguous().ok_or_else(||
.and_then(|p| p.into_semi_ambiguous().ok_or_else(||
CustomError::error(
"Invalid fasta sequence",
"A sequence in a Fasta file is assumed to be a simple sequence only consisting of amino acids although this implementation allows simple modifications as well",
Expand Down

0 comments on commit 41182cf

Please sign in to comment.