Comments (1)
Well, in FASTA format, line breaks in sequences are ignored by most tools like SeqKit.
In your case, you can create a tab-delimited format, with the sequence as the 2nd column, then convert it to FASTA format for down-stream operations.
$ grep -v '>' barcode.txt.sort \
| awk '{print $1"\t"$1}' \
| seqkit tab2fx \
| seqkit seq -r -p -t DNA
>AAACAGCCAAACTAAG
CTTAGTTTGGCTGTTT
>AAACAGCCAAACTCAT
ATGAGTTTGGCTGTTT
>AAACAGCCAAGTTATC
GATAACTTGGCTGTTT
>AAACAGCCAATAGCAA
TTGCTATTGGCTGTTT
>AAACAGCCAATCCCTT
AAGGGATTGGCTGTTT
>AAACAGCCAATTGACT
AGTCAATTGGCTGTTT
>AAACAGCCACCTAATG
CATTAGGTGGCTGTTT
>AAACAGCCAGGAACCA
TGGTTCCTGGCTGTTT
>AAACAGCCAGGCATGA
TCATGCCTGGCTGTTT
$ grep -v '>' barcode.txt.sort \
| awk '{print $1"\t"$1}' \
| seqkit tab2fx \
| seqkit seq -r -p -t DNA \
| seqkit seq -s
CTTAGTTTGGCTGTTT
ATGAGTTTGGCTGTTT
GATAACTTGGCTGTTT
TTGCTATTGGCTGTTT
AAGGGATTGGCTGTTT
AGTCAATTGGCTGTTT
CATTAGGTGGCTGTTT
TGGTTCCTGGCTGTTT
TCATGCCTGGCTGTTT
from seqkit.
Related Issues (20)
- Fail to write out all the splited output HOT 8
- seqkit subseq - accept reverse coordinates in gtf HOT 3
- [stats] N90, N95, N99, NXX HOT 5
- SeqKit rmdup for RefSeq HOT 2
- name only keep the values? HOT 1
- Default to not removing ‘*’ for seqkit sum of peptides? HOT 2
- `seqkit subseq` with bed file does properly handle uppercase and lowercase accession (not case-sensitive?) HOT 4
- using seqkit locate for k-mer counting HOT 2
- Locate memory usage HOT 2
- Remove reads with certain amount of ambiguous bases HOT 2
- seqkit 2.5.0 reports wrong version number (2.4.0) HOT 2
- Possible bug in seqkit stats HOT 2
- Allow grep to handle pair suffix in ID HOT 2
- Fast way to run seqkit locate HOT 1
- Issue with sequence of length 1 and quality '+' HOT 3
- convert paired-end FASTQ to FASTA and split in one step HOT 3
- Exit status 141 running sample and head HOT 1
- Add average quality score to `stats` HOT 5
- Add subseq selected coordinates to FASTA? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seqkit.