Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lists
#7
(Nov-28-2020, 02:07 PM)jefsummers Wrote: Please use Python tags (the blue and yellow icon above) when posting. It preserves formatting.

Use uppercase() which returns a capitalized string on your input DNA string.
You define the function with a parameter dna_seqs. You then reassign dna_seqs losing what was passed in. You then have a for loop that makes no sense - is filter_seq a function or is it a string?

I don't really understand it enough. Back to the drawing board.

I thought dna_seqs = ('A','C','G','T','a','c','g','t') would just give out this part:
"The sequence contains only the nucleotide letters A, C, G or T, or their lowercase equivalents, and no ambiguous nucleotides" Don't really know my thinking with the loop.
Reply


Messages In This Thread
Lists - by Tink - Nov-27-2020, 03:48 PM
RE: Lists - by deanhystad - Nov-27-2020, 04:21 PM
RE: Lists - by perfringo - Nov-27-2020, 06:02 PM
RE: Lists - by Tink - Nov-28-2020, 01:47 PM
RE: Lists - by Larz60+ - Nov-27-2020, 06:07 PM
RE: Lists - by jefsummers - Nov-28-2020, 02:07 PM
RE: Lists - by Tink - Nov-28-2020, 02:39 PM
RE: Lists - by jefsummers - Nov-29-2020, 01:20 PM
RE: Lists - by Tink - Dec-01-2020, 02:12 PM
RE: Lists - by deanhystad - Dec-01-2020, 03:43 PM
RE: Lists - by jefsummers - Dec-02-2020, 12:02 AM
RE: Lists - by perfringo - Dec-02-2020, 01:52 PM

Forum Jump:

User Panel Messages

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