Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fasta Files
#4
You could use the following:
https://docs.python.org/3/library/stdtyp...startswith Wrote:str.startswith(prefix[, start[, end]])
Return True if string starts with the prefix, otherwise return False. prefix can also be a tuple of prefixes to look for. With optional start, test string beginning at that position. With optional end, stop comparing string at that position.
Reply


Messages In This Thread
Fasta Files - by johnny_sav1992 - Jul-25-2020, 04:26 PM
RE: Fasta Files - by ndc85430 - Jul-25-2020, 05:00 PM
RE: Fasta Files - by johnny_sav1992 - Jul-25-2020, 05:10 PM
RE: Fasta Files - by Yoriz - Jul-25-2020, 05:28 PM
RE: Fasta Files - by Larz60+ - Jul-25-2020, 11:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Please suggest python code to format DNA sequence FASTA file rajamdade 4 3,215 Oct-24-2019, 04:36 AM
Last Post: rajamdade

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020