Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to view a specified sequence in fastq files in linux

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to view a specified sequence of fastq files in linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

When dealing with fastq files, you may encounter problems such as inconsistent length or incorrect format between the sequence and the quality value. At this time, the software will report which sequence has a problem, and give the sequence ID, and then we will go to see what the problem is. However, the fastq file is usually very large and may be difficult to search with the less command, so we can use the following command to view it.

Zcat / share/nas1/DATA/zx-20180122-15/XM8_H33TNDMXX_L1_2.clean.fq.gz | grep-E "A00164:71:H33TNDMXX:2:2438:30400:20353"-C4 > xm8-2.txt &

Zcat can view the fastq compressed file, grep matches the sequence ID, and the parameter-C 4 can output four lines before and after the matching line.

Thank you for reading! On "how to view the specified sequence of fastq files in linux" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, you can share it out for more people to see it!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report