Skip to content

Instantly share code, notes, and snippets.

@akolesnikov
Created December 13, 2018 22:25
Show Gist options
  • Save akolesnikov/9a4b019e89087dc21cf9ba0b12eece00 to your computer and use it in GitHub Desktop.
Save akolesnikov/9a4b019e89087dc21cf9ba0b12eece00 to your computer and use it in GitHub Desktop.
Print contig names
print('ref_contigs:')
print(','.join('{}:{}'.format(c.name, c.n_bases) for c in ref_contigs))
print('sam_contigs:')
print(','.join('{}:{}'.format(c.name, c.n_bases) for c in sam_contigs))
if vcf_contigs:
print('vcf_contigs:')
print(','.join('{}:{}'.format(c.name, c.n_bases) for c in vcf_contigs))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment