cellonator 0.1.0__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
cellonator/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .annot import annotate
|
cellonator/annot.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import pandas as pd
|
|
3
|
+
|
|
4
|
+
def annotate(df):
|
|
5
|
+
"""
|
|
6
|
+
Accepts a DataFrame of cell counts of shape (cell x gene).
|
|
7
|
+
"""
|
|
8
|
+
all_items = []
|
|
9
|
+
|
|
10
|
+
path = "/"
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
if os.path.exists(path) and os.path.isdir(path):
|
|
14
|
+
# Get the contents and add to our master list
|
|
15
|
+
items = os.listdir(path)
|
|
16
|
+
all_items.extend(items)
|
|
17
|
+
else:
|
|
18
|
+
all_items.append(f"Error: {path} is not a valid directory")
|
|
19
|
+
except Exception as e:
|
|
20
|
+
all_items.append(f"Error accessing {path}: {e}")
|
|
21
|
+
|
|
22
|
+
# Convert the flat list into a Pandas Series
|
|
23
|
+
return pd.Series(all_items, name="directory_contents")
|
|
24
|
+
|
|
25
|
+
if __name__ == "__main__":
|
|
26
|
+
data = {
|
|
27
|
+
'folder_paths': ['./my_docs', './downloads']
|
|
28
|
+
}
|
|
29
|
+
input_df = pd.DataFrame(data)
|
|
30
|
+
|
|
31
|
+
file_series = get_directory_series(input_df)
|
|
32
|
+
|
|
33
|
+
print(file_series)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cellonator
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A cell type annotation package
|
|
5
|
+
Author: Me
|
|
6
|
+
Author-email: me@mail.email
|
|
7
|
+
License: BSD 2-clause
|
|
8
|
+
Classifier: Development Status :: 1 - Planning
|
|
9
|
+
Classifier: Intended Audience :: Science/Research
|
|
10
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
11
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Requires-Dist: pandas
|
|
14
|
+
Dynamic: author
|
|
15
|
+
Dynamic: author-email
|
|
16
|
+
Dynamic: classifier
|
|
17
|
+
Dynamic: license
|
|
18
|
+
Dynamic: requires-dist
|
|
19
|
+
Dynamic: summary
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
cellonator/__init__.py,sha256=_bn-NPT2-knjHbiwPhoY1HR9dretEoCOcPGy2mVUxYQ,28
|
|
2
|
+
cellonator/annot.py,sha256=jQPhOrHtqf7oKEcrL0Lxplr-h-La7qQHfADMJydPBas,848
|
|
3
|
+
cellonator-0.1.0.dist-info/METADATA,sha256=EVrSGBUfibq-KSi2kAcSn7vvIyD8S9XR7BpH7JqZYCA,538
|
|
4
|
+
cellonator-0.1.0.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
|
|
5
|
+
cellonator-0.1.0.dist-info/top_level.txt,sha256=0l6PMpu_Hy3IMx83XmFGMMX5iZw7PpasAyb-3LyPoAs,11
|
|
6
|
+
cellonator-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cellonator
|