Skip to content

Commit

Permalink
Do not flag https xref as illegal.
Browse files Browse the repository at this point in the history
Update the chado_load_checks.pl script to avoid flagging https dbxrefs
as illegal. We are already allowing http xrefs, so there shouldn't be
any issue in allowing https.
  • Loading branch information
gouttegd committed Oct 18, 2023
1 parent 47fd9af commit 2db85d0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
FBC:\<curator initials\>;
PMID:\d+;
http://...;
https://...;
ISBN:<legal ISBN13>;
CARO:<CARO curator initials>.
Expand Down Expand Up @@ -133,7 +134,7 @@ sub is_dbxref_legal {
&ISBN_check($1)
}
# If not ISBN, does it follow one of the other legal dbxref syntaxes?
elsif ($_ =~ m/FlyBase\:FBrf\d{7}|VFB_vol\:\d{8}|FBC\:\S+|SO\:ma|FlyBase\:FBim\d{7}|PMID\:\d+|http\:\/\/.+|CARO\:\S+|doi\:\d+\.\d+\/\w+|FlyBrain_NDB\:\d+|FlyPNS\:\S+|DoOR\:\S+|CHEBI\:\d+|GO\:\d+|PATO\:\d+|XCO\:\d+|EFO\:\d+|MeSH\:D\d+|GOC:\S+|GO_REF\:\d+|Reactome\:\d+|SO\:\S+|UniProt\:P\d+|UniProt\:Q\S+|WB_REF\:\S+|FB\:FBrfd{7}|Wikipedia\:\S+/) {
elsif ($_ =~ m/FlyBase\:FBrf\d{7}|VFB_vol\:\d{8}|FBC\:\S+|SO\:ma|FlyBase\:FBim\d{7}|PMID\:\d+|https?\:\/\/.+|CARO\:\S+|doi\:\d+\.\d+\/\w+|FlyBrain_NDB\:\d+|FlyPNS\:\S+|DoOR\:\S+|CHEBI\:\d+|GO\:\d+|PATO\:\d+|XCO\:\d+|EFO\:\d+|MeSH\:D\d+|GOC:\S+|GO_REF\:\d+|Reactome\:\d+|SO\:\S+|UniProt\:P\d+|UniProt\:Q\S+|WB_REF\:\S+|FB\:FBrfd{7}|Wikipedia\:\S+/) {
$legal_stat=1;
} else {
$legal_stat=0
Expand Down

0 comments on commit 2db85d0

Please sign in to comment.