The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 wsplit/wAppend 1000 sheet limit
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

zknauss

USA
72 Posts

Posted - 09/30/2022 :  09:00:09 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
good morning,

I have a set of data where each subject has multiple peaks in its wave form and when processed through the peak analyzer come out looking like (image A). From this output I reorganize the data so that each measure (ex. peak amplitude) gets its own sheet with each column representing a single subject and each row the data from the corresponding peak (image B). The analysis code I have has been working well, however, I run into an issue when my subject count gets around 1000 as the number of sheets needing to be made exceeds the maximum sheet allowance of 1000. What I need is a viable work around that will allow the analysis to move forward in the case of a subject count over 1000. Critically, this needs to be done with minimal changes to how the data is structured in the final output, as the rest of my analysis script rely on this format. Below is the current script I'm utilizing to reorganize the data. Thanks in advance -ZTK

wsplit mode:=ref ref:=[NCONT1ROI]1!A"Dataset ID" keepref:=0 missing:=0 keep:=0 sparkline:=0 owp:=<input> name:=<[<%V>]>; 
wAppend irng:=[NCONT1ROI]  ow:=[NCONT1ROI]<new name:=Sorted>;
wsplit iw:=[NCONT1ROI]Sorted! owp:=[NCONT1Peak] mode:=label label:=L copyform:=copyexc;






ZTK

YimingChen

1667 Posts

Posted - 09/30/2022 :  09:40:07 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can use Unstack Columns tool repeatedly on each column of the Batch PA result sheet. Try the script below:

int nn = wks.ncols;
for (int i = 2; i <= nn; i++)
{
	wunstackcol -r 2 irng1:=[NCONT1ROI]1!$(i) irng2:=[NCONT1ROI]1!A ow:=[<new>]<new>;
}


James

Edited by - YimingChen on 09/30/2022 09:40:32 AM
Go to Top of Page

zknauss

USA
72 Posts

Posted - 09/30/2022 :  10:16:12 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I think that could work I'll play around with it and update if sucsessful

ZTK
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000