-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add reader and writer string macros (#14)
This commit implements the `@rdr_str` and `@wtr_str` macros, which autodetect the correct readers, writers and de/compressors to open a biological file based on the extensions of the path. The system is extensible to arbitrary biological formats, but the extensions of compression formats are hardcoded in this package. I also add a dubious overload to `Base.open`, such that the readers and writer macros can be used like so: ```julia open(rdr"foo.fna", wtr"bar.fq") do reader, writer ... end ```
- Loading branch information
1 parent
3c20b77
commit 28e7237
Showing
3 changed files
with
113 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "BioGenerics" | ||
uuid = "47718e42-2ac5-11e9-14af-e5595289c2ea" | ||
authors = ["Ben J. Ward <[email protected]>"] | ||
version = "0.1.2" | ||
version = "0.1.3" | ||
|
||
[deps] | ||
TranscodingStreams = "3bb67fe8-82b1-5028-8e26-92a6c54297fa" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28e7237
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
28e7237
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/92343
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: