xxing9703 / PAVE

MIT License
2 stars 3 forks source link

Pattern() #2

Open Fakesight opened 11 months ago

Fakesight commented 11 months ago

Hi!

I am following your instructions to set up the workload for matlab r2023b. I however receive the following error and do not find a way around this (I receive the error after the duplication finding phase):

Error using pattern Conversion to pattern from double is not possible.

Error in pave_atomcount (line 17) P=pattern(rep);

Error in PAVE_main (line 16) pks = pave_atomcount(M,pks,settings,rep); %atomcount sp01

Error in PAVE_ini (line 39) PAVE_main

Could you help me out if I am doing something wrong?

xxing9703 commented 11 months ago

Thanks for reporting this error! Since 2020, Matlab introduced a new internal data type called "pattern", which accidently has the same name and overwrites my defined function pattern(). Instead of installing an earlier version of matlab, an easy way to get around this is to rename pattern() in pattern.m and line 17 in pave_atomcount. (for example: change 'pattern' into 'mypattern')

Please let me know if it works. I will update it after testing.

Fakesight commented 11 months ago

Hi, I solved the matlab issue with changing the filename and also all the 'pattern'names in those files with 'mypattern'. Then it works. Another issue which comes up is the read table which does not read in the readtable(fullfile(pathname,'Peaklist-yeast-neg.csv')) line. If you take it out and run this line in the code directly after the .ini files then it loads the table already on beforehand. After that the atomcount worked again.

Yours


Van: Xi Xing @.> Verzonden: donderdag 23 november 2023 19:08 Aan: xxing9703/PAVE @.> CC: Fakesight @.>; Author @.> Onderwerp: Re: [xxing9703/PAVE] Pattern() (Issue #2)

Thanks for reporting this error! Since 2020, Matlab introduced a new internal data type called "pattern", which accidently has the same name and overwrites my defined function pattern(). Instead of installing an earlier version of matlab, an easy way to get around this is to rename pattern() in pattern.m and line 17 in pave_atomcount. (for example: change 'pattern' into 'mypattern')

Please let me know if it works. I will update it after testing.

— Reply to this email directly, view it on GitHubhttps://github.com/xxing9703/PAVE/issues/2#issuecomment-1824790879, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQSMNDKH5ABDAUXLQKEN65TYF6GI7AVCNFSM6AAAAAA7YCWTOSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUG44TAOBXHE. You are receiving this because you authored the thread.Message ID: @.***>