MultiMM 1.0.23__tar.gz → 1.0.24__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: MultiMM
3
- Version: 1.0.23
3
+ Version: 1.0.24
4
4
  Summary: A tool for chromatin modeling from nucleosomes to chromosomal territories.
5
5
  Home-page: https://github.com/SFGLab/MultiMM
6
6
  Author: Sebastian Korsak
@@ -256,7 +256,7 @@ Therefore, it is advisable to read the paper and understand well the meaning of
256
256
  | GENE_TSV | str | '' | None | A .tsv with genes and their locations in the genome. |
257
257
  | GENE_NAME | str | '' | None | The name of the gene of interest. |
258
258
  | GENE_ID | str | '' | None | The id of the gene of interest. |
259
- | GENE_WINDOW | int | 200000| bp | The window around the area of the gene of interest. |
259
+ | GENE_WINDOW | int | 500000| bp | The window around the area of the gene of interest. |
260
260
  | LOC_START | int | None | None | Starting region coordinate (*in case that you do not want to model the whole genome*). |
261
261
  | LOC_END | int | None | None | Ending region coordinate (*in case that you do not want to model the whole genome*). |
262
262
  | CHROM | str | None | None | Chromosome that corresponds the the modelling region of interest (*in case that you do not want to model the whole genome*). |
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: MultiMM
3
- Version: 1.0.23
3
+ Version: 1.0.24
4
4
  Summary: A tool for chromatin modeling from nucleosomes to chromosomal territories.
5
5
  Home-page: https://github.com/SFGLab/MultiMM
6
6
  Author: Sebastian Korsak
@@ -256,7 +256,7 @@ Therefore, it is advisable to read the paper and understand well the meaning of
256
256
  | GENE_TSV | str | '' | None | A .tsv with genes and their locations in the genome. |
257
257
  | GENE_NAME | str | '' | None | The name of the gene of interest. |
258
258
  | GENE_ID | str | '' | None | The id of the gene of interest. |
259
- | GENE_WINDOW | int | 200000| bp | The window around the area of the gene of interest. |
259
+ | GENE_WINDOW | int | 500000| bp | The window around the area of the gene of interest. |
260
260
  | LOC_START | int | None | None | Starting region coordinate (*in case that you do not want to model the whole genome*). |
261
261
  | LOC_END | int | None | None | Ending region coordinate (*in case that you do not want to model the whole genome*). |
262
262
  | CHROM | str | None | None | Chromosome that corresponds the the modelling region of interest (*in case that you do not want to model the whole genome*). |
@@ -215,7 +215,7 @@ Therefore, it is advisable to read the paper and understand well the meaning of
215
215
  | GENE_TSV | str | '' | None | A .tsv with genes and their locations in the genome. |
216
216
  | GENE_NAME | str | '' | None | The name of the gene of interest. |
217
217
  | GENE_ID | str | '' | None | The id of the gene of interest. |
218
- | GENE_WINDOW | int | 200000| bp | The window around the area of the gene of interest. |
218
+ | GENE_WINDOW | int | 500000| bp | The window around the area of the gene of interest. |
219
219
  | LOC_START | int | None | None | Starting region coordinate (*in case that you do not want to model the whole genome*). |
220
220
  | LOC_END | int | None | None | Ending region coordinate (*in case that you do not want to model the whole genome*). |
221
221
  | CHROM | str | None | None | Chromosome that corresponds the the modelling region of interest (*in case that you do not want to model the whole genome*). |
@@ -6,7 +6,7 @@ with open('README.md', 'r', encoding='utf-8') as f:
6
6
 
7
7
  setup(
8
8
  name='MultiMM', # Package name
9
- version='1.0.23', # Version of the software
9
+ version='1.0.24', # Version of the software
10
10
  description='A tool for chromatin modeling from nucleosomes to chromosomal territories.',
11
11
  long_description=long_description,
12
12
  long_description_content_type='text/markdown',
@@ -1,4 +1,4 @@
1
1
  # Importing specific functions or classes from submodules
2
2
  from .run import main
3
3
 
4
- __version__ = "1.0.23"
4
+ __version__ = "1.0.24"
@@ -152,7 +152,7 @@ args = ListOfArgs([
152
152
  Arg('GENE_TSV', help="A .tsv with genes and their locations in the genome.", type=str, default='', val=''),
153
153
  Arg('GENE_NAME', help="The name of the gene of interest.", type=str, default='', val=''),
154
154
  Arg('GENE_ID', help="The id of the gene of interest.", type=str, default='', val=''),
155
- Arg('GENE_WINDOW', help="The window around of the area around the gene of interest.", type=int, default='200000', val='200000'),
155
+ Arg('GENE_WINDOW', help="The window around of the area around the gene of interest.", type=int, default='500000', val='500000'),
156
156
  Arg('ATACSEQ_PATH', help="A .bw or .BigWig file path with atacseq data. It is not required.", type=str, default='', val=''),
157
157
  Arg('OUT_PATH', help="Output folder name.", type=str, default='results', val='results'),
158
158
  Arg('LOC_START', help="Starting region coordinate.", type=int, default='', val=''),
@@ -289,6 +289,8 @@ def import_mns_from_bedpe(bedpe_file, N_beads, coords=None, chrom=None, threshol
289
289
  mns, cs = np.vstack((loops['ms'].values[counts>threshold], loops['ns'].values[counts>threshold])), counts[counts>threshold]
290
290
  mns, idxs = np.unique(mns,axis=1,return_index=True)
291
291
  cs = cs[idxs]
292
+ if cs.size == 0:
293
+ raise ValueError("The region of interest does not include loops. Please try with longer modelling region or increase the window around the gene.")
292
294
  ms, ns = mns[0,:], mns[1,:]
293
295
  ms[ms>=N_beads],ns[ns>=N_beads]=N_beads-1, N_beads-1
294
296
  ms,ns,cs = ms[ns>ms+min_loop_dist], ns[ns>ms+min_loop_dist], cs[ns>ms+min_loop_dist]
File without changes
File without changes
File without changes
File without changes
File without changes