0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

samtoolsやbcftoolsはリモートファイルでも開ける

Last updated at Posted at 2022-04-01

タイトルの通り。
samtoolsやbcftoolsはリモートのファイルでも開ける。

samtools flagstat https://raw.githubusercontent.com/kojix2/ruby-htslib/develop/test/fixtures/moo.sam
bcftools view -H https://raw.githubusercontent.com/kojix2/ruby-htslib/develop/test/fixtures/test.vcf

以上。

…短すぎるので、背景を少しだけ書く。
htslibのソースコードを読んでいると、インデックスを読み込むときにリモートファイルをローカルにコピーするみたいな表現が出てくるのが気になった。htslibのGithubのリポジトリを検索していたら次のissueがあってリモートのファイルが開けることがわかりました。

この記事は以上です。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?