You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add new DRAM rule parser submodule for traits and distill ([5e9a088](https://github.com/WrightonLabCSU/DRAM/commit/5e9a08872b590c3ac372047db46ddbaa946b8814))
12
+
13
+
New python Lark base rule parser that defines rule grammer
14
+
for traits grammer that can be reused for distill and product.
15
+
This rule parser is more accurate and less error prone than
16
+
the older traits parser completely custom coded. THis fixes
17
+
a number of bugs where things were being double counted and not
18
+
parsed correctly. This also allows distill, traits, and product
19
+
eventually to all use the same rule parsing code. Rule parsing
20
+
documentation can be found in docs/rules_parser.md or
Rule parser is implemented with polars instead of Pandas for a
24
+
few reasons. It is a bit faster, and it allows lazy query planning.
25
+
The annotation df is not currently lazy (eager rn), but with plans
26
+
to allow it to be lazy. Lazy DataFrames can be more memory efficient
27
+
by only loading the data/columns needed, and doing query optimization
28
+
to speed up and require less memory for intermediate steps.
29
+
- Update summarize eco Ag sheet to newly developed Ag sheet ([4937f1c](https://github.com/WrightonLabCSU/DRAM/commit/4937f1ce846b3910e5fe18264f9daca8221dd207))
30
+
31
+
32
+
- Add carbon rules to traits, save traits as excel sheet ([02de665](https://github.com/WrightonLabCSU/DRAM/commit/02de6657261fb5517b3df20985285a6b2b392fa7))
33
+
34
+
35
+
36
+
### Package
37
+
38
+
- Package cleanup. Removing old files and cleanups ([c6bae64](https://github.com/WrightonLabCSU/DRAM/commit/c6bae64a787623721ff402a38afd94bab63eb12d))
@click.option('--annotations', type=click.Path(exists=True), required=True, help="One of only 2 required files. Path to a DRAM annotations file.")
62
-
@click.option('-o', '--output', type=click.Path(), default='adjectives.tsv', help="Path for the output table. A true false table created by this script.")
63
-
@click.option('-a', '--adjectives_list', default="", callback=validate_comma_separated, help="A comma seperated list of adjectives ('adj1,adj2,adj3'), by name, to evaluate. This limits the number of adjectives that are evaluated and is faster.")
64
-
@click.option('-p', '--plot_adjectives', multiple=True, default=[], help="A list of adjectives, by name, to plot. This limits the number of adjectives that are plotted and is probably needed for speed.")
help='will become a folder of output plots, no path no plots.')
70
-
@click.option('--strainer_tsv', type=click.Path(exists=False), default=None, help='The path for a tsv that will pass to strainer to filter genes. The only option at this time is pgtb for positive genes that are on true bugs.')
71
-
@click.option('--strainer_type', type=click.Path(exists=False), default=None, help='The type of process that should make the strainer file.')
help='This is a tool to debug the list of IDs found by DRAM it is mostly for experts')
59
+
@click.option('-o', '--output', type=click.Path(), default='traits.xlsx', help="Path for the output table. A true false table created by this script.")
help="List the names for all adjectives.tsv that are"
88
-
" available, you can pass these names to limit the"
89
-
" adjectives that are evaluated")
63
+
# @click.option('-a', '--adjectives_list', default="", callback=validate_comma_separated, help="A comma seperated list of adjectives ('adj1,adj2,adj3'), by name, to evaluate. This limits the number of adjectives that are evaluated and is faster.")
64
+
# @click.option('-p', '--plot_adjectives', multiple=True, default=[], help="A list of adjectives, by name, to plot. This limits the number of adjectives that are plotted and is probably needed for speed.")
# help='will become a folder of output plots, no path no plots.')
70
+
# @click.option('--strainer_tsv', type=click.Path(exists=False), default=None, help='The path for a tsv that will pass to strainer to filter genes. The only option at this time is pgtb for positive genes that are on true bugs.')
71
+
# @click.option('--strainer_type', type=click.Path(exists=False), default=None, help='The type of process that should make the strainer file.')
default=None)#, help='will become a folder of output plots, no path no plots.')
118
-
@click.option('-a', '--adjectives', multiple=True, default=[], help="A list of adjectives, by name, to evaluate. This limits the number of adjectives that are evaluated and is faster.")
# default=None)#, help='will become a folder of output plots, no path no plots.')
133
+
# @click.option('-a', '--adjectives', multiple=True, default=[], help="A list of adjectives, by name, to evaluate. This limits the number of adjectives that are evaluated and is faster.")
0 commit comments