Entering edit mode
3.0 years ago
harry
▴
40
I have a file in which two-column present one is read and the other is circBase.
read circBase
hsa_circ_0000160 hsa_circ_0000160
hsa_circ_0000160 hsa_circ_0000160
hsa_circ_0000175 hsa_circ_0000175
hsa_circ_0000175 hsa_circ_0000175
hsa_circ_0000211 hsa_circ_0017614
hsa_circ_0000211 hsa_circ_0000211
hsa_circ_0000211 hsa_circ_0000211
hsa_circ_0000219 hsa_circ_0000219
hsa_circ_0000219 hsa_circ_0000219
hsa_circ_0000219 hsa_circ_0000219
hsa_circ_0000236 hsa_circ_0000236
I want to make a file with 3 columns in which the 1st column is a unique read name from the above read column The 2nd column is the count of the match with each other and the third column is the count of which does not match the first column. The below is an example of the output file which I want.
read match not_match
hsa_circ_0000160 2 0
hsa_circ_0000175 2 0
hsa_circ_0000211 2 1
hsa_circ_0000219 3 0
hsa_circ_0000236 1 0
I search for it but I can't find out how can I do this. So please can anyone help me with this issue. Thanks in advance
My t.tsv file looks like:
I used below command and showing some error:
After this command run then it shows the below error:-
[ERRO] column "read" not existed in file: - [ERRO] xopen: no content [ERRO] xopen: no content [ERRO] xopen: no content
Can you please sort out this issue? Thanks in advance.
Just remove all
-t
for CSV file.Thanks now its working
If an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one if they work.