Search Results

Search: Posts Made By: geparada88
16,986
Posted By geparada88
Thanks sk1418! Your code will guide me a...
Thanks sk1418!

Your code will guide me a lot!

I didn't explain the filter in simple words, sorry about that, but it isn't easy.



It's beacuse AK154365 2109 92.8257042254 has non...
16,986
Posted By geparada88
AWK or python??
Hi!

I'm a experimental biochemist, but I'm few time ago, I started to do bioinformatics stuffs.
I have to filer the output results of some programs that I've been used.

I've learned bash and...
2,018
Posted By geparada88
nawk -F, '{for(i=1;i<=NF;i++) printf("%s%c",...
nawk -F, '{for(i=1;i<=NF;i++) printf("%s%c", ($i=="")?"":$i-$1, (i==NF)?ORS:FS)}' ./file

works!!!
thanks vgersh99 :)

---------- Post updated at 05:14 PM ---------- Previous update was at 05:05...
2,018
Posted By geparada88
Chubler_XL...
Chubler_XL (https://www.unix.com/members/302085178.html)'s code works perfect!

thanks you guys!
2,018
Posted By geparada88
Thanks you! I tested both codes with this...
Thanks you!

I tested both codes with this file:



1,2,3,4,5
2,5,6,45
3,56,100,1000
2,



with the vgersh99 (https://www.unix.com/members/37898.html)'s code I get

...
2,018
Posted By geparada88
AWK help ! or others ways to do it!
Hi!

I really need your help!

I need to operate the columns separate by ',' of a file with this structure



a1,a2,a3
b1,b2,b3,b4,b5
c1,c2
d1,d2,d3
e1
....
and I want the result of...
1,035
Posted By geparada88
jim mcnamara: didn't work :( sk1418:...
jim mcnamara: didn't work :(

sk1418: works!!.. and it's very fast, but the output has long spaces.. like this:

AF314818 1 ...
1,035
Posted By geparada88
awk grep HELP!
Hi

I have to files:

file 1

AB000494
AB000496
AB001732
AB001737
AB003026


...

to 13.000 lines
file 2


AB001650 1 ...
2,008
Posted By geparada88
I don't have previous experience programming. ...
I don't have previous experience programming.
I'm a undergraduate student of Biochemistry and I have to process large genomic databases to accomplish my thesis goals. So, that's why I started to...
2,008
Posted By geparada88
Because I didn't know it isn't necessary
Because I didn't know it isn't necessary
2,008
Posted By geparada88
I already had success splinting the strings whit...
I already had success splinting the strings whit this sed code:

sed -e s/A/A\ /g -e s/T/T\ /g -e s/G/G\ /g -e s/C/C\ /g

But whit

awk -F ""

the it seems not necessary split the...
2,008
Posted By geparada88
Split strings
Hello

I started to learn bash about 1 or 2 weeks, please help me.

I have about 200000 strings like these:

ATGCCAGGGGAGCCCAGAAGGTAAAACTTGATCTGAAATGTATGTTTATATATAATTTAGGTAATCAATTGGCATGTGAA...
2,551
Posted By geparada88
Corona: I have a Intel Core I 5, which is 64-bits...
Corona: I have a Intel Core I 5, which is 64-bits

I knew there are a way thought awk

awk 'NR==FNR{a[$1];next} $NF in a ' file1 file2
worked nice!

Thanks !!!!
2,551
Posted By geparada88
grep -f file1 file2
Hi
I started to learn bash a week ago. I need filter the strings from the last column of a "file2" that match with a column from an other "file1"

file1:

chr10100036394-100038350AK077761...
Showing results 1 to 14 of 14

 
All times are GMT -4. The time now is 08:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy