Search Results

Search: Posts Made By: Mauve
4,359
Posted By Mauve
Thank you, that works beautifully :)
Thank you, that works beautifully :)
4,359
Posted By Mauve
Grep from pattern file without removing duplicates?
I have been using grep to output whole lines using a pattern file with identifiers (fileA):

fig|562.2322.peg.1
fig|562.2322.peg.3
fig|562.2322.peg.3
fig|562.2322.peg.3
fig|562.2322.peg.7
From...
6,627
Posted By Mauve
For anyone that might be facing similar problems,...
For anyone that might be facing similar problems, I ended up with this solution:


for k in Anno_**
do
Var1=$(find $k -name "Anno*" | grep -o '[0-9]\{3,\}[.][0-9]\{4,\}')
for l in Scan**
do...
6,627
Posted By Mauve
I tested the suggestions of SriniShoo, but this...
I tested the suggestions of SriniShoo, but this seems to output the numerical patterns of all filenames, while I need to recursively read the pattern from each filename into the variable (in a for...
6,627
Posted By Mauve
Assigning matched pattern within filename to variable
I am writing a bash script where I use two types of files that both contain a numerical pattern of the type 123.4567 (always groups of three and four digits separated by period) within their...
20,645
Posted By Mauve
Is it also possible to modify this code, for...
Is it also possible to modify this code, for example using a for-loop, to perform this action on all .fasta files in a directory (outputing the modified files to a new directory or similarly)?
20,645
Posted By Mauve
Brilliant, thank you! :b:
Brilliant, thank you! :b:
20,645
Posted By Mauve
I did, but it was removed.. here goes again:...
I did, but it was removed.. here goes again: fasta files (e.g. sample_1.fasta) in format:

>node_1
atgatgatgat
>node_3
gtcgtcgtcgtcgtc
>node_12
gtagtagta

Expected output:
...
20,645
Posted By Mauve
Gave awk a try, but this appears to print the...
Gave awk a try, but this appears to print the filename in the first header only, not to change it in place, and also this does not affect the subsequent headers. Any alternative solutions?
20,645
Posted By Mauve
Append file name to fasta file headers in Linux
How do we append the file name to fasta file headers in multiple fasta-files in Linux?
Showing results 1 to 10 of 10

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