首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用vcftools筛选出DNA重复序列

用vcftools筛选出DNA重复序列
EN

Stack Overflow用户
提问于 2022-03-08 10:02:16
回答 1查看 49关注 0票数 0

我试着从DNA序列读取中筛选出重复序列。为此,我有:

  • grw_vcf_filtered_2.vcf作为输入文件,
  • grw_repeatmasker_runner_combined.bed以重复位置过滤out
  • grw_repeats_removed.vcf作为输出文件。

但是,在运行4分钟后,我仍然得到了错误:grw_repeats_removed.vcf not such file or directory

这是我的代码:

代码语言:javascript
复制
module load bioinfo-tools vcftools

cd $SNIC_TMP #making temporary file 

cp /proj/snic2020-2-25/nobackup/violeta/grw_vcf_filtered_2.vcf /proj/snic2020-2-25/nobackup/violeta/grw_repeatmasker_runner_combined.bed ./

vcftools --vcf grw_vcf_filtered_2.vcf --out grw_repeats_removed.vcf --exclude-positions grw_repeatmasker_runner_combined.bed

#copy from current location -temporary file- to my directory 

cp ./grw_repeats_removed.vcf /proj/snic2020-2-25/nobackup/violeta/
EN

回答 1

Stack Overflow用户

发布于 2022-03-08 18:20:02

不推荐使用vcftools;

使用bcftools

使用选项

代码语言:javascript
复制
-T, --targets-file [^]FILE        Similar to -R but streams rather than index-jumps. Exclude regions with "^" prefix

援引:

代码语言:javascript
复制
bcftools view -O v -o grw_repeats_removed.vcf --targets-file ^grw_repeatmasker_runner_combined.bed grw_vcf_filtered_2.vcf
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71393098

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档