Unconfigured Ad
Collapse
X
-
Dude, Many many thanks! this is working out absolutely fine now. Looks like i should explore more of the Unix environment tools! This has streamlined my analysis and cut down a lot of time. Thanks a loT!
-
many thanks! I will try this out and post the results.
Originally posted by pallevillesen View Post>sort
>join
cat file1 |sort >file1.sort
cat file2 |sort >file2.sort
[palle@fe1 ~]$ join -v 1 -j 3 file1.sort file2.sort # All lines from file 1 found a match
[palle@fe1 ~]$ join -v 2 -j 3 file1.sort file2.sort # Lines missing a match
2_1234 2 1234 EFGH2
2_1234566 2 123456 EFGH2
[palle@fe1 ~]$ join -j 3 file1.sort file2.sort # Matched lines
1_1234 1 1234 ABCD 1 1234 ABCD1
1_12345 1 12345 ABCD 1 12345 ABCD1
1_123456 1 123456 ZXYW 1 123456 ABCD1
[palle@fe1 ~]$
Leave a comment:
-
>sort
>join
cat file1 |sort >file1.sort
cat file2 |sort >file2.sort
[palle@fe1 ~]$ join -v 1 -j 3 file1.sort file2.sort # All lines from file 1 found a match
[palle@fe1 ~]$ join -v 2 -j 3 file1.sort file2.sort # Lines missing a match
2_1234 2 1234 EFGH2
2_1234566 2 123456 EFGH2
[palle@fe1 ~]$ join -j 3 file1.sort file2.sort # Matched lines
1_1234 1 1234 ABCD 1 1234 ABCD1
1_12345 1 12345 ABCD 1 12345 ABCD1
1_123456 1 123456 ZXYW 1 123456 ABCD1
[palle@fe1 ~]$
Leave a comment:
-
Comparing data from two columns
Hello everybody,
I am analysing variant calls from two different pipelines. What i need to do for my downstream analysis is combine all the variant calls into a single file, column.
eg:
file 1:
Chr Position Chr_position gene_id
1 1234 1_1234 ABCD
1 12345 1_12345 ABCD
1 123456 1_123456 ZXYW
file2:
Chr Position Chr_position protein_id
1 1234 1_1234 ABCD1
2 1234 2_1234 EFGH2
2 123456 2_1234566 EFGH2
1 12345 1_12345 ABCD1
1 123456 1_123456 ABCD1
What i would like to do is the following:
file 3:
Chr Position Chr_position gene_id protein_id
1 1234 1_1234 ABCD ABCD1
1 12345 1_12345 ABCD ABCD1
1 123456 1_123456 ZXYW ABCD1
2 1234 2_1234 EFGH2
2 123456 2_1234566 EFGH2
The number of rows in both the files are different, so using the Match option in excel is not going to work out. using Mysql is an option, but I am not that well versed in SQL. is there a way i could do this using AWK or any other scripting language? I am at a loss working on this! Any inputs would be mightily appreciated. Thanks!
Latest Articles
Collapse
-
by SEQadmin2
Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?
Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating...-
Channel: Articles
10-14-2026, 09:55 AM -
-
by SEQadmin2
Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.
We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing...-
Channel: Articles
-
ad_right_rmr
Collapse
News
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SEQadmin2, 10-22-2026, 11:13 AM
|
0 responses
46 views
0 reactions
|
Last Post
by SEQadmin2
10-22-2026, 11:13 AM
|
||
|
Started by SEQadmin2, 10-22-2026, 10:48 AM
|
0 responses
34 views
0 reactions
|
Last Post
by SEQadmin2
10-22-2026, 10:48 AM
|
||
|
Started by SEQadmin2, 10-15-2026, 10:52 AM
|
0 responses
46 views
0 reactions
|
Last Post
by SEQadmin2
10-15-2026, 10:52 AM
|
||
|
Started by SEQadmin2, 10-14-2026, 05:39 AM
|
0 responses
46 views
0 reactions
|
Last Post
by SEQadmin2
10-14-2026, 05:39 AM
|
Leave a comment: