You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/maxdudek/local/src/TRACE/scripts/dataProcessing.py", line 290, in <module>
main()
File "/home/maxdudek/local/src/TRACE/scripts/dataProcessing.py", line 273, in main
loessSignal, deriv2nd, deriv1st, bc_loess = signal.get_signal(args.span, args.is_atac, args.shift)
File "/home/maxdudek/local/src/TRACE/scripts/dataProcessing.py", line 193, in get_signal
maximum = int(self.size[1][self.size[0] == peak[0]])
File "/home/maxdudek/local/miniconda3/envs/TRACE_env/lib/python3.7/site-packages/pandas/core/series.py", line 131, in wrapper
raise TypeError("cannot convert the series to " "{0}".format(str(converter)))
TypeError: cannot convert the series to <class 'int'>
As far as I can tell my bam, bed3, and genome files are all in the correct format, and I don't know enough about the code to figure out what's going wrong. Looking up the error tells me to use .astype(int), instead if int(), but then I just get another error later down:
Traceback (most recent call last):
File "/home/maxdudek/local/src/TRACE/scripts/dataProcessing.py", line 280, in <module>
main()
File "/home/maxdudek/local/src/TRACE/scripts/dataProcessing.py", line 263, in main
loessSignal, deriv2nd, deriv1st, bc_loess = signal.get_signal(args.span, args.is_atac, args.shift)
File "/home/maxdudek/local/src/TRACE/scripts/dataProcessing.py", line 186, in get_signal
ext_r = 5000 if int(peak[2]) + 5000 < maximum else maximum - int(peak[2])
File "/home/maxdudek/local/miniconda3/envs/TRACE_env/lib/python3.7/site-packages/pandas/core/generic.py", line 1556, in __nonzero__
self.__class__.__name__
ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
I printed out the values of the variables when the error occurs in case it helps. Any insight would be greatly appreciated!
I believe the error was caused by chromosome format in your peak file, you have 1 in the first column instead of chr1, so it was not able to get the right chromosome size.
Hi,
When I run the script like this:
I get the following error:
As far as I can tell my bam, bed3, and genome files are all in the correct format, and I don't know enough about the code to figure out what's going wrong. Looking up the error tells me to use
.astype(int)
, instead ifint()
, but then I just get another error later down:I printed out the values of the variables when the error occurs in case it helps. Any insight would be greatly appreciated!
self.size
:peak
:self.size[0] == peak[0]
:self.size[1][self.size[0] == peak[0]]
:The text was updated successfully, but these errors were encountered: