forked from biocommons/uta
-
Notifications
You must be signed in to change notification settings - Fork 0
feat(IPVC-3107): detect transcripts in UTA but not in txinfo #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
be51689
call uta load function check-transcripts, which is tbd
nvta1209 663888c
incremental docker builds
nvta1209 d3112a5
configurable use_schema in uta.models
nvta1209 420a0ad
check_transcripts skeleton
nvta1209 a6beeac
fetch all transcripts
nvta1209 6ae9c0f
return flattened list of NM/NR transcripts
nvta1209 cdb84be
optionally filter by tx prefix
nvta1209 348e5a1
subtract incoming txinfo transcripts
nvta1209 6fa5092
describe check-transcripts step in readme/sbin/src
nvta1209 9c0e3df
test
nvta1209 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| # Find transcripts in the current UTA database version which are not in the txinfo file, | ||
| # and write those transcripts to the check-transcripts.txt file. | ||
| # | ||
| # uta-extract, which produces the needed txinfo file, must run before this script. | ||
| # Any action taken with respect to the identified transcripts is case-dependent and optional. | ||
| # | ||
| # source_uta_v is the current UTA database version. | ||
| # working_dir stores input and output files. | ||
| # log_dir stores log files. | ||
|
|
||
| set -euxo pipefail | ||
|
|
||
| source_uta_v=$1 | ||
| working_dir=$2 | ||
| log_dir=$3 | ||
|
|
||
| if [ -z "$source_uta_v" ] || [ -z "$working_dir" ] || [ -z "$log_dir" ] | ||
| then | ||
| echo 'Usage: uta-check-transcripts <source_uta_v> <working_dir> <log_dir>' | ||
| exit 1 | ||
| fi | ||
|
|
||
| mkdir -p "$log_dir" | ||
|
|
||
| UTA_USE_SCHEMA=false uta --conf=etc/global.conf --conf=etc/uta_dev@localhost.conf check-transcripts --prefixes=NM,NR "$working_dir/txinfo.gz" "$source_uta_v" "$working_dir/check-transcripts.txt" 2>&1 | \ | ||
| tee "$log_dir/check-transcripts.log" |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ | |
| uta --version | ||
| uta (-C CONF ...) [options] shell | ||
| uta (-C CONF ...) [options] drop-schema | ||
| uta (-C CONF ...) [options] check-transcripts [--prefixes=PREFIXES] TXINFO_FILE UTA_SCHEMA OUTPUT_FILE | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I found it confusing to define the cli interface in the docstring. |
||
| uta (-C CONF ...) [options] create-schema | ||
| uta (-C CONF ...) [options] update-meta-data | ||
| uta (-C CONF ...) [options] load-sql FILES ... | ||
|
|
@@ -68,6 +69,7 @@ def main(): | |
| dispatch_table = [ | ||
| ("align-exons", ul.align_exons), | ||
| ("analyze", ul.analyze), | ||
| ("check-transcripts", ul.check_transcripts), | ||
| ("create-schema", ul.create_schema), | ||
| ("update-meta-data", ul.update_meta_data), | ||
| ("drop-schema", ul.drop_schema), | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Two pip-installs is the best solution I could come up with to prevent reinstalling dependencies whenever src changed (for a faster development cycle using docker).