forked from biocommons/uta
-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(IPVC-2276): skip accessions from gff that are not in the tx_info file, log missing acs to file #18
Merged
Merged
feat(IPVC-2276): skip accessions from gff that are not in the tx_info file, log missing acs to file #18
Changes from 3 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4ecb9b4
feat(IPVC-2276): skip acs missing from seqrepo and save them to a file
sptaylor dc48fa0
feat(IPVC-2276): update fx name
sptaylor 5b77ba6
feat(IPVC-2276): update fx name
sptaylor 523f06c
style(IPVC-2276): add empty new line
sptaylor 2eea2a0
Merge branch 'main' into IPVC-2276-filter-accessions
sptaylor 50ff903
Revert "feat(IPVC-2276): skip acs missing from seqrepo and save them …
sptaylor 0e15485
refactor(IPVC-2276): pull out open_file into module
sptaylor 18b0443
feat(IPVC-2276): filter exonsets by transcript info file
sptaylor 9327609
feat(IPVC-2276): add exonset filtering to build pipeline
sptaylor 348d942
style(IPVC-2276): add newline
sptaylor 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,7 +115,7 @@ def _get_exon_number_from_id(alignment_id: str) -> int: | |
return int(alignment_id.split("-")[-1]) | ||
|
||
|
||
def parse_gff_file(file_paths: List[str]) -> dict[str, List[GFFRecord]]: | ||
def parse_gff_files(file_paths: List[str]) -> dict[str, List[GFFRecord]]: | ||
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. Updated the name to reflect the function takes a list of files |
||
tx_data = defaultdict(list) | ||
for file_path in file_paths: | ||
with open_file(file_path) as f: | ||
|
@@ -152,7 +152,7 @@ def get_zero_based_exon_ranges(transcript_exons: List[GFFRecord]) -> str: | |
gff_files = args.gff_files | ||
esw = ExonSetWriter(sys.stdout) | ||
|
||
transcript_alignments = parse_gff_file(gff_files) | ||
transcript_alignments = parse_gff_files(gff_files) | ||
logger.info( | ||
f"read {len(transcript_alignments)} transcript alignments from file(s): {', '.join(gff_files)}" | ||
) | ||
|
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
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.
Can we add an output directory to the supported arguments. So we can have this file directed to the directory the user chooses?