request
1
0
Entering edit mode
amrit karki ▴ 20
@amrit-karki-3562
Last seen 10.2 years ago
DearTing-Yuan I found your answer about how can we calculate common genes from two files but i have also similar problem but different interest. I also have two .text files including Genebank accession numbers respectively. I want to find the genes with the different GB Acession numbers from between two .txt files rather than same GB accession. Thank you so much for your help. Amrit [[alternative HTML version deleted]]
• 477 views
ADD COMMENT
0
Entering edit mode
@steve-lianoglou-2771
Last seen 21 months ago
United States
Hi, On Jul 9, 2009, at 12:22 AM, amrit karki wrote: > DearTing-Yuan > I found your answer about how can we calculate common genes from two > files but i have also similar problem but different interest. I also > have two .text files including Genebank accession numbers > respectively. I want to find the genes with the different GB > Acession numbers from between two .txt files rather than same GB > accession. Thank you so much for your help. I'm not sure I get your question, but is this what you're after? R> file1 <- paste("Gene", LETTERS[1:10]) R> file2 <- paste("Gene", LETTERS[5:15]) R> file1 [1] "Gene A" "Gene B" "Gene C" "Gene D" "Gene E" "Gene F" "Gene G" "Gene H" "Gene I" "Gene J" > file2 [1] "Gene E" "Gene F" "Gene G" "Gene H" "Gene I" "Gene J" "Gene K" "Gene L" "Gene M" "Gene N" "Gene O" > c(setdiff(file1, file2), setdiff(file2, file1)) [1] "Gene A" "Gene B" "Gene C" "Gene D" "Gene K" "Gene L" "Gene M" "Gene N" "Gene O" You can then use the names of the genes in your "difference" set to find the line in the respective files that differ (I guess this is what you want?) -steve -- Steve Lianoglou Graduate Student: Physiology, Biophysics and Systems Biology Weill Medical College of Cornell University Contact Info: http://cbio.mskcc.org/~lianos
ADD COMMENT

Login before adding your answer.

Traffic: 730 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