Skip to content

Commit

Permalink
#300 bug resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
udayRage committed Nov 14, 2024
1 parent f16a5a7 commit d375212
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ class NucleotideSequenceGenerator:
"""
:Description: NucleotideSequenceGenerator generates a random DNA or RNA sequence with specified GC content and length.
:Attributes:
sequence_length: int
sequenceLength: int
Length of the generated sequence.
gc_content: float
gcContent: float
Desired GC content as a decimal (e.g., 0.5 for 50%).
is_rna: bool
True for RNA sequence, False for DNA sequence.
Expand Down Expand Up @@ -38,9 +38,9 @@ class NucleotideSequenceGenerator:
Retrieves the total runtime taken by the sequence generation process.
"""

def __init__(self, sequence_length, gc_content, is_rna=False):
self.sequence_length = sequence_length
self.gc_content = gc_content
def __init__(self, sequenceLength, gcContent, is_rna=False):
self.sequenceLength = sequenceLength
self.gcContent = gcContent
self.is_rna = is_rna
self.sequence = ""
self._startTime = float()
Expand All @@ -55,8 +55,8 @@ def create(self):
nucleotides = "GCAU" if self.is_rna else "GCAT"

# Calculate number of G/C and A/T (or A/U) bases
gc_count = int(self.sequence_length * self.gc_content)
at_count = self.sequence_length - gc_count
gc_count = int(self.sequenceLength * self.gcContent)
at_count = self.sequenceLength - gc_count

# Build the sequence with the correct proportion of GC and AT
sequence_list = (
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name='pami',
version='2024.11.13.2',
version='2024.11.14.1',
author='Rage Uday Kiran',
author_email='uday.rage@gmail.com',
description='This software is being developed at the University of Aizu, Aizu-Wakamatsu, Fukushima, Japan',
Expand Down

0 comments on commit d375212

Please sign in to comment.