Question: (Closed) How to trim lists
0
gravatar for linlinli99013
5.0 years ago by
United States
linlinli9901310 wrote:

I have some lists as the following:

[34, 34, 34, 35, 34, 37, 37, 37, 34, 34, 34, 34, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 38, 39, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 38, 38, 39, 38, 39, 39, 39, 39, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 38, 38, 36, 38, 14, 14, 36, 38, 18, 33, 19, 19, 37, 38, 19, 18, 18, 37, 38, 39, 39, 38, 38, 38, 38, 14, 27, 32, 28, 30, 35, 35, 37, 38, 37, 14, 14, 14, 28, 14, 30, 16, 16, 37, 38, 39, 38, 12, 29, 12, 31, 35, 13, 31, 13, 12, 13, 13, 25, 14, 13, 12, 25, 31, 31, 34, 37, 14, 15, 25, 37, 37, 37, 37, 38, 15, 26, 25]

[33, 34, 34, 34, 34, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 38, 39, 39, 39, 39, 39, 35, 39, 39, 38, 38, 38, 38, 39, 38, 39, 37, 39, 39, 37, 37, 38, 39, 37, 38, 38, 38, 39, 18, 39, 39, 39, 39, 39, 39, 37, 16, 16, 32, 38, 39, 38, 36, 38, 36, 36, 35, 38, 39, 39, 39, 39, 37, 37, 37, 35, 38, 39, 39, 39, 39, 37, 39, 36, 35, 38, 38, 38, 36, 16, 34, 38, 36, 36, 37, 36, 32, 36, 36, 39, 39, 18, 19, 18, 37, 37, 38, 34, 38, 14, 14, 15, 37, 14, 37, 19, 30, 15, 36, 39, 17, 27, 37, 17, 18, 33, 38, 38, 38, 39, 38, 39, 38, 38, 38, 37, 35, 36, 34, 39, 33, 37, 39]

How do I write a function which can trim the list from the point with three consecutive numbers<20?

Thanks

 

next-gen forum • 1.2k views
ADD COMMENTlink modified 5.0 years ago by Pierre Lindenbaum120k • written 5.0 years ago by linlinli9901310
1

What's the connection to bioinformatics? This seems like a simple programming question. Also, it's usually a good idea to say which language you're trying to do something in.

ADD REPLYlink written 5.0 years ago by Devon Ryan90k

What have you tried?

ADD REPLYlink modified 5.0 years ago • written 5.0 years ago by Sukhdeep Singh9.7k

Hello linlinli99013!

We believe that this post is does not fit the main topic of this site.

not related to bioinformatics.

For this reason we have closed your question. This allow us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

ADD REPLYlink written 5.0 years ago by Pierre Lindenbaum120k
Please log in to add an answer.
The thread is closed. No new answers may be added.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 895 users visited in the last hour