Sponsored Content
Top Forums Shell Programming and Scripting Extract length wise sequences from fastq file Post 302788269 by Yoda on Monday 1st of April 2013 11:55:55 AM
Old 04-01-2013
Code:
awk 'length($0) >=21 && length($0) <= 25' inputfile > outputfile

 

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
LCG_LIMITS(4)							   File Formats 						     LCG_LIMITS(4)

NAME
Castor_limits - LCG internal limits SYNOPSIS
#include <Castor_limits.h> DESCRIPTION
The Castor_limits.h header file contains all the common limits that all LCG subpackages have to respect. These are: CA_MAXACLENTRIES maximum number of ACL entries for a file/dir Default value: 300 CA_MAXCLASNAMELEN maximum length for a fileclass name Default value: 15 CA_MAXCOMMENTLEN maximum length for user comments in metadata Default value: 255 CA_MAXDENFIELDS maximum number of density values in devinfo Default value: 8 CA_MAXDENLEN maximum length for a alphanumeric density Default value: 8 CA_MAXDGNLEN maximum length for a device group name Default value: 6 CA_MAXDPMTOKENLEN maximum length for a Disk Pool Manager token Default value: 36 CA_MAXDVNLEN maximum length for a device name Default value: 63 CA_MAXDVTLEN maximum length for a device type Default value: 8 CA_MAXFIDLEN maximum length for a fid (DSN) Default value: 17 CA_MAXFSEQLEN maximum length for a fseq string Default value: 14 CA_MAXGID maximum value for gid Default value: 0x7FFFFFFF CA_MAXGRPNAMELEN maximum length for a group name Default value: 2 CA_MAXGUIDLEN maximum length for a guid Default value: 36 CA_MAXHOSTNAMELEN maximum length for a hostname Default value: 63 CA_MAXLBLTYPLEN maximum length for a label type Default value: 3 CA_MAXLINELEN maximum length for a line in a log Default value: 1023 CA_MAXMANUFLEN maximum length for a cartridge manufacturer Default value: 12 CA_MAXMLLEN maximum length for a cartridge media_letter Default value: 1 CA_MAXMODELLEN maximum length for a cartridge model Default value: 6 CA_MAXNAMELEN maximum length for a pathname component Default value: 255 CA_MAXNBDRIVES maximum number of tape drives per server Default value: 32 CA_MAXPATHLEN maximum length for a pathname Default value: 1023 CA_MAXPOLICYLEN maximum length for a policy name Default value: 15 CA_MAXPOOLNAMELEN maximum length for a pool name Default value: 15 CA_MAXPROTOLEN maximum length for a protocol name Default value: 7 CA_MAXRBTNAMELEN maximum length for a robot name Default value: 17 CA_MAXRECFMLEN maximum length for a record format Default value: 3 CA_MAXREGEXPLEN maximum length for a regular expression Default value: 63 CA_MAXSFNLEN maximum length for a replica Default value: 1103 CA_MAXSHORTHOSTLEN maximum length for a hostname without domain Default value: 10 CA_MAXSNLEN maximum length for a cartridge serial nb Default value: 24 CA_MAXSTGRIDLEN maximum length for a stager full request id (must be >= nb digits in CA_MAXSTGREQID + CA_MAXHOSTNAMELEN + 8) Default value: 77 CA_MAXSTGREQID maximum value for a stager request id Default value: 999999 CA_MAXUID maximum value for uid Default value: 0x7FFFFFFF CA_MAXSYMLINKS maximum number of symbolic links Default value: 5 CA_MAXTAGLEN maximum length for a volume tag Default value: 255 CA_MAXTAPELIBLEN maximum length for a tape library name Default value: 8 CA_MAXUNMLEN maximum length for a drive name Default value: 8 CA_MAXUSRNAMELEN maximum length for a login name Default value: 14 CA_MAXVIDLEN maximum length for a VID Default value: 6 CA_MAXVSNLEN maximum length for a VSN Default value: 6 AUTHOR
LCG Grid Deployment Team LCG
$Date: 2007/02/03 11:16:45 $ LCG_LIMITS(4)
All times are GMT -4. The time now is 05:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy