Skip to content

Commit

Permalink
Merge branch 'master' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
ptonner committed Mar 16, 2022
2 parents 3a1a8b6 + d877d80 commit 6a14e79
Show file tree
Hide file tree
Showing 44 changed files with 7,778 additions and 87 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pt filter=lfs diff=lfs merge=lfs -text
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ __pycache__/
docs/examples
docs/*.pt
docs/*.csv
docs/_build/
docs/_build/
manuscript/experiments/
9 changes: 9 additions & 0 deletions docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ tensor([1., 0., 1., 0., 0.])
'+c:+e'


An alternative data format is supported, comparing the full sequence
for each variant against the wild-type (see :meth:`~lantern.dataset.Dataset.from_sequences`).

>>> df = pd.DataFrame({"phenotype": [0]*3, "sequence": ["AAA", "ATC", "CGA"]})
>>> ds = lantern.dataset.Dataset.from_sequences(df, wildtype="AAA", sequence_col="sequence")
>>> ds.tokenizer.tokens
['A1C', 'A2G', 'A2T', 'A3C']




Building a LANTERN model
Expand Down
Loading

0 comments on commit 6a14e79

Please sign in to comment.