Skip to content

Commit

Permalink
Updated file handling
Browse files Browse the repository at this point in the history
File handling
  • Loading branch information
caanene1 committed Mar 19, 2021
1 parent b0c2c30 commit 6c146ed
Show file tree
Hide file tree
Showing 30 changed files with 127 additions and 2,230 deletions.
Binary file modified .DS_Store
Binary file not shown.
28 changes: 11 additions & 17 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

190 changes: 0 additions & 190 deletions ACSNI.egg-info/PKG-INFO

This file was deleted.

19 changes: 0 additions & 19 deletions ACSNI.egg-info/SOURCES.txt

This file was deleted.

1 change: 0 additions & 1 deletion ACSNI.egg-info/dependency_links.txt

This file was deleted.

5 changes: 0 additions & 5 deletions ACSNI.egg-info/requires.txt

This file was deleted.

1 change: 0 additions & 1 deletion ACSNI.egg-info/top_level.txt

This file was deleted.

24 changes: 24 additions & 0 deletions ACSNI/dat.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,30 @@ def get_row_index(x):

return id_name

def parse_exp(x):
"""
Process the expression file
Parameters
----------
x: matrix of expression
Returns
-------
res: results matrix
"""

x1 = get_row_index(x)
x2 = get_col_names(x)
y = pd.DataFrame()

if len(x1) != 1:
sys.exit("ERROR: Please, check the file and try again")

y['name'] = x[x1[0]]
y = pd.concat([y, x[x2]], axis=1)
return y

def remove_unexpressed(df):
"""
Remove unexpressed genes
Expand Down
Loading

0 comments on commit 6c146ed

Please sign in to comment.