Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is an error in the "__reformSequence" function #2

Open
crazyxiaoj opened this issue Aug 24, 2024 · 2 comments
Open

There is an error in the "__reformSequence" function #2

crazyxiaoj opened this issue Aug 24, 2024 · 2 comments

Comments

@crazyxiaoj
Copy link

This function is used to convert a string into a SeqRecord object, not a Seq object. Because Seq objects do not have seq properties (in the getORFs function, you used forward = str(sequence.seq).upper()).

@crazyxiaoj
Copy link
Author

This code can solve the problem

def __reformSequence (sequence):

    if isinstance(sequence, str): 

        sequence = SeqRecord(Seq(sequence), id="seqence")

    return sequence

@Chokyotager
Copy link
Owner

Chokyotager commented Aug 25, 2024

Have you run any tests on the code? How do I reproduce the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants