Search Results

Search: Posts Made By: Fahmida
1,269
Posted By Fahmida
Thanks Ravinder!
Thanks Ravinder!
1,269
Posted By Fahmida
Help reformatting input file
Hi,
I have an input file that looks like this (columns are tab delimited:

Data000005-RA GO:0003735 GO:0005840 GO:0006412
Data000005-RA GO:0003735 ...
1,014
Posted By Fahmida
Hi bakunin thanks for taking the time to go...
Hi bakunin
thanks for taking the time to go through it and providing the example.
you are right:
DD!! # after second passis exactly what I need.
This is irrespective of the codon, reading...
1,014
Posted By Fahmida
Search and replace with a sliding window
Hi Unix Gurus,

I have a file with data like:

>header_1
TCCCCGA
>header_2
CCAATTGGGTA
The data to work with starts from the next line after '>header_xx'.
(1)
I want to search the three...
1,823
Posted By Fahmida
Both working fine! Thanks a lot!
Both working fine! Thanks a lot!
1,823
Posted By Fahmida
Search for a particular word and replace the first character
Hi Unix gurus,

I've a dna sequence in a file format known as fasta format (sequence header starts with > and ignored), an example shown below:

>sequence_1
CGTATTCTCCGAATACC
ATACG
>sequence_2...
826
Posted By Fahmida
awk - because in some previous example I found it...
awk - because in some previous example I found it simple, easy to use and re usability in other similar problems.
what I naively tried e.g. 'list.data.txt' seems working ok.
paste <(awk '/^>/ {...
826
Posted By Fahmida
awk help!
Hi,
I've two list files and two corresponding data files which looks like:

list1.txt
list1.data.txt
Similarly:
list2.txt
list2.data.txt
What I need is merging two list files into one list...
1,100
Posted By Fahmida
Search and replace problem
Hi,

I am looking for bash or awk script to solve the following.
Input File 1:

>Min_0-t10270-RA|>Min_0-t10270-RA protein AED:0.41 eAED:0.46 QI:0|0|0|0.25|1|1|4|0|190...
1,971
Posted By Fahmida
save the text in a file e.g. 'file.txt': input:...
save the text in a file e.g. 'file.txt':
input: file.txt
T111||T222||T444||T222||T555
command:
cat file.txt |tr -s '||' '\n'|sort|uniq -u|tr -s '\n' ' '
output:
T111 T444 T555
1,991
Posted By Fahmida
Dear Yoda, Thanks for your reply. Your code...
Dear Yoda,

Thanks for your reply. Your code is working, it adds the 'NNNN's after each subject line, it would be great if code is modified to add 'NNNN's at the end of the Sbjct of a whole block...
1,991
Posted By Fahmida
I need some help to construct a long 'Sbjct'...
I need some help to construct a long 'Sbjct' string from the following input using incremental order of 'Sbjct' starting number (e.g. 26325115,33716368,33769033,34869860 etc.)
Different 'Sbject'...
1,991
Posted By Fahmida
awk code to reconstruct sequence from alignment
Hi Everyone,

I need some help to construct a long 'Sbjct' string from the following input using incremental order of 'Sbjct' starting number (e.g. 26325115,33716368,33769033,34869860 etc.)...
1,825
Posted By Fahmida
Thanks. I don't have 'nawk' in my MAC-OSX. So...
Thanks. I don't have 'nawk' in my MAC-OSX. So replacing 'nawk' with 'awk' and with your code and the data files above I get the following output, which appears incorrect:
TTGAGATCCG
G
TTCCTGTTCA
1,825
Posted By Fahmida
fast sequence extraction
Hi everyone,

I have a large text file containing DNA sequences in fasta format as follows:
>someseq
GAACTTGAGATCCGGGGAGCAGTGGATCTC
CACCAGCGGCCAGAACTGGTGCACCTCCAG
GCCAGCCTCGTCCTGCGTGTC...
1,881
Posted By Fahmida
Thanks for your reply mirni. Just two issues: ...
Thanks for your reply mirni. Just two issues:
1) If I am not mistaken your code seems producing the output exactly as the input
2) On top of the criteria I described at the beginning of the post....
1,881
Posted By Fahmida
Working Fine. Thanks a lot!
Working Fine. Thanks a lot!
1,881
Posted By Fahmida
Thanks for your reply. However, it seems I don't...
Thanks for your reply. However, it seems I don't have 'nawk' in my MacOSX 10.6.8. Any idea how to run it or any 'awk' equivalent? Thanks.
1,881
Posted By Fahmida
Matching and reporting near-similar lines in a file
Hi,

I have a file with the lines as below:
C_10_A05_T7
C_10_A06_SP6
C_10_B05_SP6
C_10_B05_T7
C_10_B01_SP6
C_10_B01_T7
C_12_G07_SP6
C_12_G11_SP6
C_12_G11_T7
C_2_H18_T7
C_2_I02_SP6...
1,050
Posted By Fahmida
Gr8.Working Fine.Thanks.
Gr8.Working Fine.Thanks.
1,050
Posted By Fahmida
Thanks for your reply. Both the files are...
Thanks for your reply.
Both the files are ordered. Thats right.
However, there are more numbers than records in the datafile.
For example, there are three L1_T1 headers, however, for this the...
1,050
Posted By Fahmida
Search and Replace
I am trying to search and replace using two different files with strict search rules.
One file contain some data and the other file contain some numbers as shown below.
DataFile.txt

>L1_T1
text...
1,272
Posted By Fahmida
Text File Manipulation Help
Hi I've two text files FILE_1 and FILE_2 as shown below:

FILE_1.txt


CO Contig1 342 12 11 U
GGGCTGACGTGGCCGCTAATACGACTCACTATAGGG*AGAGAAGTCATTTTCTTGTTTAG

BQ
35 35 35 50 50 50 50 50 50 50...
1,913
Posted By Fahmida
Hi, Thanks for your reply. I've tried your...
Hi,
Thanks for your reply.
I've tried your code:
awk 'NR==FNR{A[RS$1]=$0;next}A[$1]{print ">"A[$1];next}1' RS=\> MainFile.txt RS="\n" OtherFile*.txt

However, it's just giving me he '>Header',...
1,913
Posted By Fahmida
Reading and writing data to and from multiple files
Hi,

I have several text files. One main file contains the detail data, other have some information to extract data from the main file, and some are empty files. Examples are shown below:
The main...
Showing results 1 to 25 of 43

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