Sponsored Content
Top Forums Shell Programming and Scripting Extract length wise sequences from fastq file Post 302788267 by empyrean on Monday 1st of April 2013 11:52:30 AM
Old 04-01-2013
Extract length wise sequences from fastq file

I have a fastq file from small RNA sequencing with sequence lengths between 15 - 30. I wanted to filter sequence lengths between 21-25 and write to another fastq file. how can i do that?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

To extract data of a perticular interval (date-time wise)

I want a shell script which extract data from a log file which contains date and time-wise data and i need the data for a perticular interval of time...what can i do??? (3 Replies)
Discussion started by: abhishek27
3 Replies

2. UNIX for Dummies Questions & Answers

Convert a tab delimited/variable length file to fixed length file

Hi, all. I need to convert a file tab delimited/variable length file in AIX to a fixed lenght file delimited by spaces. This is the input file: 10200002<tab>US$ COM<tab>16/12/2008<tab>2,3775<tab>2,3783 19300978<tab>EURO<tab>16/12/2008<tab>3,28523<tab>3,28657 And this is the expected... (2 Replies)
Discussion started by: Everton_Silveir
2 Replies

3. Shell Programming and Scripting

Extract sequences based on the list

Hi, I have a file with more than 28000 records and it looks like below.. >mm10_refflat_ABCD range=chr1:1234567-2345678 tgtgcacactacacatgactagtacatgactagac....so on >mm10_refflat_BCD range=chr1:3234567-4545678... tgtgcacactacacatgactagtatgtgcacactacacatgactagta . . . . . so on ... (2 Replies)
Discussion started by: Diya123
2 Replies

4. Shell Programming and Scripting

Extract substring specif position and length from file line

Hi gurus, I am trying to figure out how to extract substring from file line (all lines in file), as specified position and specified legth. Example input (file lines) dhaskjdsa dsadhkjsa dhsakjdsad hsadkjh dsahjdksahdsad sahkjd sahdkjsahd sajkdh adhjsak I want to extract substring on... (5 Replies)
Discussion started by: ProsteJa
5 Replies

5. Shell Programming and Scripting

Extract sequences of bytes from binary for differents blocks

Hello to all, I would like to search sequences of bytes inside big binary file. The bin file contains blocks of information, each block begins is estructured as follow: 1- Each block begins with the hex 32 (1 byte) and ends with FF. After the FF of the last block, it follows 33. 2- Next... (59 Replies)
Discussion started by: Ophiuchus
59 Replies

6. Shell Programming and Scripting

Extract the part of sequences from a file

I have a text file, input.fasta contains some protein sequences. input.fasta is shown below. >P02649 MKVLWAALLVTFLAGCQAKVEQAVETEPEPELRQQTEWQSGQRWELALGRFWDYLRWVQT LSEQVQEELLSSQVTQELRALMDETMKELKAYKSELEEQLTPVAEETRARLSKELQAAQA RLGADMEDVCGRLVQYRGEVQAMLGQSTEELRVRLASHLRKLRKRLLRDADDLQKRLAVY... (8 Replies)
Discussion started by: rahim42
8 Replies

7. Shell Programming and Scripting

Extract sequences from a FASTA file based on another file

I have two files. File1 is shown below. >153L:B|PDBID|CHAIN|SEQUENCE RTDCYGNVNRIDTTGASCKTAKPEGLSYCGVSASKKIAERDLQAMDRYKTIIKKVGEKLCVEPAVIAGIISRESHAGKVL KNGWGDRGNGFGLMQVDKRSHKPQGTWNGEVHITQGTTILINFIKTIQKKFPSWTKDQQLKGGISAYNAGAGNVRSYARM DIGTTHDDYANDVVARAQYYKQHGY >16VP:A|PDBID|CHAIN|SEQUENCE... (7 Replies)
Discussion started by: nelsonfrans
7 Replies

8. Shell Programming and Scripting

Extract count of string in all files and display on date wise

Hi All, hope you all are doing well! I kindly ask you for shell scripting help, here is the description: I have huge number of files shown below on date wise, which contains different strings(numbers you can say) including 505001 and 602001. ... (14 Replies)
Discussion started by: VasuKukkapalli
14 Replies

9. Shell Programming and Scripting

Outputting sequences based on length with sed

I have this file: >ID1 AA >ID2 TTTTTT >ID-3 AAAAAAAAA >ID4 TTTTTTGGAGATCAGTAGCAGATGACAG-GGGGG-TGCACCCC Add I am trying to use this script to output sequences longer than 15 characters: sed -r '/^>/N;{/^.{,15}$/d}' The desire output would be this: >ID4... (8 Replies)
Discussion started by: Xterra
8 Replies

10. UNIX for Beginners Questions & Answers

How to count the length of fasta sequences?

I could calculate the length of entire fasta sequences by following command, awk '/^>/{if (l!="") print l; print; l=0; next}{l+=length($0)}END{print l}' unique.fasta But, I need to calculate the length of a particular fasta sequence specified/listed in another txt file. The results to to be... (14 Replies)
Discussion started by: dineshkumarsrk
14 Replies
SIBsim4(1)							   User Manuals 							SIBsim4(1)

NAME
SIBsim4 - align RNA sequences with a DNA sequence, allowing for introns SYNOPSIS
SIBsim4 [ options ] dna rna_db DESCRIPTION
SIBsim4 is a similarity-based tool for aligning a collection of expressed sequences (EST, mRNA) with a genomic DNA sequence. Launching SIBsim4 without any arguments will print the options list, along with their default values. SIBsim4 employs a blast-based technique to first determine the basic matching blocks representing the "exon cores". In this first stage, it detects all possible exact matches of W-mers (i.e., DNA words of size W) between the two sequences and extends them to maximal scoring gap-free segments. In the second stage, the exon cores are extended into the adjacent as-yet-unmatched fragments using greedy alignment algorithms, and heuristics are used to favor configurations that conform to the splice-site recognition signals (e.g., GT-AG). If neces- sary, the process is repeated with less stringent parameters on the unmatched fragments. By default, SIBsim4 searches both strands and reports the best matches, measured by the number of matching nucleotides found in the align- ment. The R command line option can be used to restrict the search to one orientation (strand) only. Currently, four major alignment display options are supported, controlled by the A option. By default, only the endpoints, overall similar- ity, and orientation of the introns are reported. An arrow sign ('->' or '<-') indicates the orientation of the intron. The sign `==' marks the absence from the alignment of a cDNA fragment starting at that position. In the description below, the term MSP denotes a maximal scoring pair, that is, a pair of highly similar fragments in the two sequences, obtained during the blast-like procedure by extending a W-mer hit by matches and perhaps a few mismatches. OPTIONS
-A <int> output format 0: exon endpoints only 1: alignment text 3: both exon endpoints and alignment text 4: both exon endpoints and alignment text with polyA info Note that 2 is unimplemented. Default value is 0. -C <int> MSP score threshold for the second pass. Default value is 12. -c <int> minimum score cutoff value. Alignments which have scores below this value are not reported. Default value is 50. -E <int> cutoff value. Default value is 3. -f <int> score filter in percent. When multiple hits are detected for the same RNA element, only those having a score within this percentage of the maximal score for that RNA element are reported. Setting this value to 0 disables filtering and all hits will be reported, provided their score is above the cutoff value specified through the c option. Default value is 75. -g <int> join exons when gap on genomic and RNA have lengths which differ at most by this percentage. Default value is 10. -H <int> report chimeric transcripts when the best score is lower than this percentage of the overall RNA coverage and the chimera score is greater than this percentage of the RNA length (0 disables this report) Default value is 75. -I <int> window width in which to search for intron splicing. Default value is 6. -K <int> MSP score threshold for the first pass. Default value is 16. -L <str> a comma separated list of forward splice-types. Default value is "GTAG,GCAG,GTAC,ATAC". -M <int> scoring splice sites, evaluate match within M nucleotides. Default value is 10. -o <int> when printing results, offset nt positions in dna sequence by this amount. Default value is 0. -q <int> penalty for a nucleotide mismatch. Default value is -5. -R <int> direction of search 0: search the '+' (direct) strand only 1: search the '-' strand only 2: search both strands Default value is 2. -r <int> reward for a nucleotide match. Default value is 1. -S <int> splice site indels search breadth. While determining the best position of a splice site, SIBsim4 will evaluate adding at most this number of insertions and deletions on the DNA strand on each side of the splice junction. Default value is 2. -s <int> split score in percent. While linking MSP, if two consecutive group of exons appear like they could be part of two different copies of the same gene, they will be tested to see if the score of each individual group relative to the best overall score is greater than this value. If both groups have a relative score above this threshold they will be split. Default value is 75. -W <int> word size. Default value is 12. -X <int> value for terminating word extensions. Default value is 12. Bioinformatics April 2007 SIBsim4(1)
All times are GMT -4. The time now is 02:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy