-
Notifications
You must be signed in to change notification settings - Fork 53
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
Pattern documentation #2138
Comments
It would be awesome if in addition to a link to a #!/usr/bin/perl
my $n=0;
my $len;
my $hlen;
while(<>) {
chomp;
if ($n==0 && m@^\#@) {
s@^\#@@;
}
my (@vals) = split(/\t/,$_);
@vals = map {s@\|@, @g; $_} @vals;
if (!$hlen) {
$hlen = scalar(@vals);
}
while (scalar(@vals) < $hlen) {
push(@vals, '');
}
print '|'.join('|',@vals)."|\n";
$nulen = scalar(@vals);
if ($n > 0) {
if ($len ne $nulen) {
print STDERR "MISMATCH: $len != $nulen\n";
}
}
$len = $nulen;
if ($n ==0) {
@vals = map {"---"} @vals;
print '|'.join('|',@vals)."|\n";
}
$n++;
} |
I have updated the pages:
The rest would have to be done by curating the patterns themselves. @cmungall can you check that, aside from the content, this looks ok to you: |
(I am using python for the generation of this table, pandas has a nice .to_markdown() function.) |
much better than my hack, awesome. pandas + dosdp-query is a powerful combo! |
@nicolevasilevsky when curating patterns take a look at the patternizer output to see if there is useful stuff to add E.g. looks like a good synonym pattern for isolated! See https://github.com/monarch-initiative/mondo/pull/2162/files |
the new markdown is looking great I don't think the vars field is correct it should say classes:
isolated: MONDO:0021128
owl_thing: owl:Thing
relations:
has modifier: RO:0002573
vars:
disease: owl_thing of course, we should just change the range to the root of mondo here, we obviously don't want to allow this to be any thing The patternizer actually does a good job here, I recommend using it: |
Are you sure that is how you want the variable slot to be rendered? Just check the second example you posted (https://github.com/cmungall/owl_patternizer/blob/master/examples/mondo/X_has_modifier_has_an_isolated_presentation.yaml#L11). IN this case, the overview would read: v0 (MONDO:0000001). Anyways, I will do this now, but better double-check this is what you want. |
of course we should rename v0 to something meaningful
…On Tue, Oct 20, 2020 at 2:55 AM Nico Matentzoglu ***@***.***> wrote:
Are you sure that is how you want the variable slot to be rendered? Just
check the second example you posted (
https://github.com/cmungall/owl_patternizer/blob/master/examples/mondo/X_has_modifier_has_an_isolated_presentation.yaml#L11).
IN this case, the overview would read: v0 (MONDO:0000001). Anyways, I will
do this now, but better double-check this is what you want.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2138 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAMMOP7CHCVMNZFKUSE4I3SLVM7HANCNFSM4STR4VWA>
.
|
Reassigning this to @sabrinatoro, I don't have the bandwidth to work on this. |
Manually authored README:
https://github.com/monarch-initiative/mondo/blob/master/src/patterns/README.md
Auto-generated docs, all in one page:
https://github.com/monarch-initiative/mondo/blob/master/src/patterns/dosdp-patterns/README.md
Variables | owl_thing (owl:Thing)
which is not goodThe text was updated successfully, but these errors were encountered: