Skip to content

Commit

Permalink
Add readme for VCF
Browse files Browse the repository at this point in the history
  • Loading branch information
sfchen committed Dec 26, 2015
1 parent 1cbcd6f commit 6e9fc17
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,12 @@ intervals = bed_read_intervals("in.bed")
# write all records
bed_write_intervals("out.bed",intervals)
```

***read/write a VCF***
```julia
using OpenGene

# load the entire VCF data into a vcf object, which has a .header field and a .data field
vcfobj = vcf_read("in.vcf")
# write the vcf object into a file
vcf_write("out.vcf", vcfobj)

0 comments on commit 6e9fc17

Please sign in to comment.