Off topic:Filter table in R based on the number of chromosomes
0
0
Entering edit mode
5.5 years ago

Hi all,

I have a table like this:

CHROM   POS     N_ALLELES       N_CHR   M.F          A.Freq
CM009840.1      932     2       14      0               1
CM009840.1      1096    2       84      0.357143        0.642857
CM009840.1      1107    2       32      0.84375         0.15625
CM009840.1      1177    2       74      0.445946        0.554054
CM009840.1      1276    2       64      0.640625        0.359375
CM009840.1      1295    2       68      0.632353        0.367647
CM009840.1      1471    2       48      0.770833        0.229167
CM009840.1      1518    2       52      0.192308        0.807692
CM009840.1      1527    2       48      0.875           0.125

I want to filter this table by the column N_CHR. The filter's basis is to remove rows smaller than 30.

for example: In the first row, there is number 14, So, i want to remove this row. And so for all the rows.

What is the best idea?

SNP R • 2.4k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1713 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6