generated from theislab/sc_analysis_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from quadbio/update_package
Update package
- Loading branch information
Showing
11 changed files
with
126 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
from .core import DATA_DIR, FIG_DIR | ||
from importlib.metadata import version | ||
|
||
__all__ = ["DATA_DIR", "FIG_DIR"] | ||
from . import pl, pp, tl, ul | ||
|
||
__all__ = ["pl", "pp", "tl", "ul"] | ||
__version__ = version("fancypackage") |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .basic import BasicClass, basic_plot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
from anndata import AnnData | ||
|
||
|
||
def basic_plot(adata: AnnData) -> int: | ||
"""Generate a basic plot for an AnnData object. | ||
Parameters | ||
---------- | ||
adata | ||
The AnnData object to preprocess. | ||
Returns | ||
------- | ||
Some integer value. | ||
""" | ||
print("Import matplotlib and implement a plotting function here.") | ||
return 0 | ||
|
||
|
||
class BasicClass: | ||
"""A basic class. | ||
Parameters | ||
---------- | ||
adata | ||
The AnnData object to preprocess. | ||
""" | ||
|
||
my_attribute: str = "Some attribute." | ||
my_other_attribute: int = 0 | ||
|
||
def __init__(self, adata: AnnData): | ||
print("Implement a class here.") | ||
|
||
def my_method(self, param: int) -> int: | ||
"""A basic method. | ||
Parameters | ||
---------- | ||
param | ||
A parameter. | ||
Returns | ||
------- | ||
Some integer value. | ||
""" | ||
print("Implement a method here.") | ||
return 0 | ||
|
||
def my_other_method(self, param: str) -> str: | ||
"""Another basic method. | ||
Parameters | ||
---------- | ||
param | ||
A parameter. | ||
Returns | ||
------- | ||
Some integer value. | ||
""" | ||
print("Implement a method here.") | ||
return "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .basic import basic_preproc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from anndata import AnnData | ||
|
||
|
||
def basic_preproc(adata: AnnData) -> int: | ||
"""Run a basic preprocessing on the AnnData object. | ||
Parameters | ||
---------- | ||
adata | ||
The AnnData object to preprocess. | ||
Returns | ||
------- | ||
Some integer value. | ||
""" | ||
print("Implement a preprocessing function here.") | ||
return 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .basic import basic_tool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from anndata import AnnData | ||
|
||
|
||
def basic_tool(adata: AnnData) -> int: | ||
"""Run a tool on the AnnData object. | ||
Parameters | ||
---------- | ||
adata | ||
The AnnData object to preprocess. | ||
Returns | ||
------- | ||
Some integer value. | ||
""" | ||
print("Implement a tool to run on the AnnData object.") | ||
return 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .constants import DATA_DIR, FIG_DIR |
File renamed without changes.