Header Leaderboard Ad

Collapse

filtering variants with R

Collapse

Announcement

Collapse

SEQanswers June Challenge Has Begun!

The competition has begun! We're giving away a $50 Amazon gift card to the member who answers the most questions on our site during the month. We want to encourage our community members to share their knowledge and help each other out by answering questions related to sequencing technologies, genomics, and bioinformatics. The competition is open to all members of the site, and the winner will be announced at the beginning of July. Best of luck!

For a list of the official rules, visit (https://www.seqanswers.com/forum/sit...wledge-and-win)
See more
See less
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • filtering variants with R

    Hi,

    I'm learning basic data analysis with R, I'm using RStudio. I have my sequencing data in one file. It contains samples from 3 tissues from 100 individuals. I need to filter out variants within individuals, so that I can see variants unique for each tissue and common between two or all tissues.
    My file is one dataset with 116 columns - after filtering variants I would like to keep all the columns. One of these columns is my individual ID (for 130 individuals) and there are separate columns with variants and tissue types.
    So far, I understand that I need to create a loop that will filter within each individual by 1. sorting variants 2. apply filtering to variant presence in different tissues, so that in the end I would get: 1. 3 sets of variants unique for each tissue type, 2. 1 set of variants common to all tissue types, 3. 3 sets of variants common between 2 tissue types.

    I've tried the VennDiagram package, but it sorts out variants that occur in any other individual in my dataset. I need to look into variants in a single individual.

    Does anyone here know how to solve this??

    Cheers,
    A.

Latest Articles

Collapse

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by seqadmin, Yesterday, 08:56 PM
0 responses
8 views
0 likes
Last Post seqadmin  
Started by seqadmin, Yesterday, 07:33 AM
0 responses
8 views
0 likes
Last Post seqadmin  
Started by seqadmin, 05-31-2023, 07:50 AM
0 responses
4 views
0 likes
Last Post seqadmin  
Started by seqadmin, 05-26-2023, 09:22 AM
0 responses
8 views
0 likes
Last Post seqadmin  
Working...
X