Skip to content

Commit

Permalink
[FIX](sequence): Sequence typo
Browse files Browse the repository at this point in the history
  • Loading branch information
PauAndrio committed Nov 15, 2024
1 parent ad1d66b commit f87fd23
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion biobb_dna/backbone/bipopulations.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def launch(self) -> int:
self.stage_files()

# check sequence
if not self.sequence or len(self.sequence) < 2:
if self.sequence is None or len(self.sequence) < 2:
raise ValueError("sequence is null or too short!")

# check seqpos
Expand Down
4 changes: 2 additions & 2 deletions biobb_dna/backbone/canonicalag.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def launch(self) -> int:
self.stage_files()

# check sequence
if not self.sequence or len(self.sequence) < 2:
if self.sequence is None or len(self.sequence) < 2:
raise ValueError("sequence is null or too short!")

# check seqpos
Expand Down Expand Up @@ -202,7 +202,7 @@ def get_xlabels(self, strand1, strand2):
labelsC[-1] = f"{labelsC[-1]}3'"
labelsC = [f"{i}-{j}" for i, j in zip(labelsC, range(len(labelsC), 0, -1))]

if self.seqpos is not None:
if self.seqpos:
labelsC = [labelsC[i] for i in self.seqpos]
labelsW = [labelsW[i] for i in self.seqpos]
xlabels = labelsW + ["-"] + labelsC
Expand Down
2 changes: 1 addition & 1 deletion biobb_dna/dna/dna_averages.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def launch(self) -> int:
self.stage_files()

# check sequence
if not self.sequence or len(self.sequence) < 2:
if self.sequence is None or len(self.sequence) < 2:
raise ValueError("sequence is null or too short!")

# get helical parameter from filename if not specified
Expand Down
2 changes: 1 addition & 1 deletion biobb_dna/dna/dna_timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def launch(self) -> int:
self.stage_files()

# check sequence
if not self.sequence or len(self.sequence) < 2:
if self.sequence is None or len(self.sequence) < 2:
raise ValueError("sequence is null or too short!")

# calculate cols with 0 index
Expand Down
2 changes: 1 addition & 1 deletion biobb_dna/interbp_correlations/interbpcorr.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def launch(self) -> int:
self.stage_files()

# check sequence
if not self.sequence or len(self.sequence) < 2:
if self.sequence is None or len(self.sequence) < 2:
raise ValueError("sequence is null or too short!")

# check seqpos
Expand Down
2 changes: 1 addition & 1 deletion biobb_dna/interbp_correlations/interseqcorr.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def launch(self) -> int:
self.stage_files()

# check sequence
if not self.sequence or len(self.sequence) < 2:
if self.sequence is None or len(self.sequence) < 2:
raise ValueError("sequence is null or too short!")

# get helical parameter from filename if not specified
Expand Down

0 comments on commit f87fd23

Please sign in to comment.