Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rraadd88 committed Nov 23, 2023
1 parent 0184cf1 commit a81c4d4
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,10 @@ target/

6
*.bak
examples/*/*
examples/*.npy
examples/*test*
examples/_*
examples/_*/
_*/
examples/*demo_data*
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ identifiers:
value: 10.5281/zenodo.8264035
repository-code: 'https://github.com/rraadd88/htsimaging'
version: 1.0.4
date-released: '2023-08-10'
date-released: '2023-08-10'
3 changes: 2 additions & 1 deletion examples/io_read_nd2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"from os.path import dirname,splitext\n",
"from os import makedirs\n",
"\n",
"import nd2\n",
"#!pip install nd2\n",
"import nd2 \n",
"import numpy as np"
]
},
Expand Down
18 changes: 18 additions & 0 deletions examples/protein_abundance_by_marker_location.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,24 @@
"df1.head(1)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "f505f151-7c92-4021-b4b6-da9eb76a4274",
"metadata": {},
"outputs": [],
"source": [
"to_table(df1,f\"{output_dir_path}/01_gfpby_pixels.pqt\") # saved as a parquet file because of its potentially large size "
]
},
{
"cell_type": "markdown",
"id": "f2607927-9ed2-4dfb-831a-4f8a1ae73a60",
"metadata": {},
"source": [
"### Aggregation"
]
},
{
"cell_type": "code",
"execution_count": 13,
Expand Down
6 changes: 6 additions & 0 deletions htsimaging/viz/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ def image_background(
N=50,
)
ax=plt.subplot(111) if ax is None else ax
# TODO preprocess
# if not rotation is None:
# assert rotation%90 ==0:
# img=numpy.rot90(img,3)
# img_region=numpy.rot90(img_region,3)

if not img is None:
ax_img=ax.imshow(
img,
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
'scikit-image', # image processing.
'argh', # for command-line convinience
'seaborn',
'fastparquet',
],
'spt':[
'pims==0.4.1',
Expand Down Expand Up @@ -66,7 +67,7 @@
author='rraadd88',
author_email='rohanadandage@gmail.com',
license='General Public License v. 3',
packages=setuptools.find_packages('.',exclude=['test','tests', 'unit','deps','data','examples']),
packages=setuptools.find_packages('.',exclude=['test', 'unit','deps', 'data']),
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3',
Expand All @@ -82,4 +83,4 @@
# 'console_scripts': ['htsimaging = htsimaging.run:parser.dispatch',],
# },
python_requires='>=3.7, <4',
)
)

0 comments on commit a81c4d4

Please sign in to comment.