Skip to content

Commit

Permalink
Fix additional lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
xiamaz committed Oct 4, 2023
1 parent 2d9b204 commit 8cf00de
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions clinvar_this/io/tsv.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,7 @@ def record_pubmed_citations(
)
for pmid in record.pmids
]
return None

def record_clinical_features(
record: SeqVarTsvRecord,
Expand Down Expand Up @@ -877,7 +878,8 @@ def _hpo_terms(submission: SubmissionClinvarSubmission) -> typing.Optional[typin

def _pmids(submission: SubmissionClinvarSubmission) -> typing.Optional[typing.List[str]]:
if citations := submission.clinical_significance.citation:
return [c.id for c in citations if c.db == CitationDb.PUBMED]
return [c.id for c in citations if c.db == CitationDb.PUBMED and c.id]
return None

def submission_to_seq_var_tsv_record(
submission: SubmissionClinvarSubmission,
Expand Down Expand Up @@ -976,7 +978,8 @@ def _inheritance(submission: SubmissionClinvarSubmission) -> typing.Optional[Mod

def _pmids(submission: SubmissionClinvarSubmission) -> typing.Optional[typing.List[str]]:
if citations := submission.clinical_significance.citation:
return [c.id for c in citations if c.db == CitationDb.PUBMED]
return [c.id for c in citations if c.db == CitationDb.PUBMED and c.id]
return None

def submission_to_struc_var_tsv_record(
submission: SubmissionClinvarSubmission,
Expand Down

0 comments on commit 8cf00de

Please sign in to comment.