Search found 22 matches

by plasma33
29 Jul 2017 23:27
Forum: DOS Batch Forum
Topic: Pulling out sets of fixed multiple lines onto single set
Replies: 6
Views: 1464

Re: Pulling out sets of fixed multiple lines onto single set

This is the third question (including the one StackOverflow question I saw) I've seen from you about data in this format. I'm really curious about what it could possibly be used for. Hi there, These are biological sequences and I am trying to extract the conserved regions (common substrings) from t...
by plasma33
29 Jul 2017 21:38
Forum: DOS Batch Forum
Topic: Pulling out sets of fixed multiple lines onto single set
Replies: 6
Views: 1464

Pulling out sets of fixed multiple lines onto single set

Hello everyone, I would like pull out sets of fixed multiple lines from around 500,000 plus lines onto a single set. A simple demonstration of what I would like to achieve is represented below: Input: RGRGRKRGRHRGRGRGIGRMKHIGRMRRIGKMKMIGRHRLIGRIRNIGRL |||||||||||||||||||||||||.|:||:||.|||.:.|||:::||...
by plasma33
29 Jul 2017 19:53
Forum: DOS Batch Forum
Topic: Batchscript to extract texts from multiple lines
Replies: 18
Views: 3366

Re: Batchscript to extract texts from multiple lines

Hello gentlemen,

@elzooilogico and @Dave both of your code works like a charm and within a span of couple of seconds. Unbelievable :) Thanks for all your effort.

Plasma33
by plasma33
29 Jul 2017 00:53
Forum: DOS Batch Forum
Topic: Batchscript to extract texts from multiple lines
Replies: 18
Views: 3366

Re: Batchscript to extract texts from multiple lines

Hello again, Is there a way to process first set of 8191 characters at a time and then move onto next set of 8191 characters and so on and save all the results in a single output file? But also not losing the aligned texts at the same time. For example, the last line of the first set of 8191 charact...
by plasma33
29 Jul 2017 00:18
Forum: DOS Batch Forum
Topic: Batchscript to extract texts from multiple lines
Replies: 18
Views: 3366

Re: Batchscript to extract texts from multiple lines

Aacini wrote:The maximum line length that can be processed in a Batch file is 8191 characters... :cry:

Antonio


All good :) I will make do with this. I forgot about the maximum line length of 8191 characters. Thanks again.

Plasma33
by plasma33
28 Jul 2017 20:48
Forum: DOS Batch Forum
Topic: Batchscript to extract texts from multiple lines
Replies: 18
Views: 3366

Re: Batchscript to extract texts from multiple lines

Hello all, First of all thank you all for providing me the code and sorry for my delayed response. I tried all your code and it doesn't seem to be giving me the desired output that I want. I am providing one of the input text files for your reference (download link below). The file is around 2.86mb....
by plasma33
26 Jul 2017 21:34
Forum: DOS Batch Forum
Topic: Batchscript to extract texts from multiple lines
Replies: 18
Views: 3366

Batchscript to extract texts from multiple lines

Hi all, I have a text file which contains the following texts: RGRGRKRGRHRGRGRGIGRMKHIGRMRRIGKMKMIGRHRLIGRIRNIGRLRGIGRKRGIGRGRGIGRQRHIGKLKHIGRGRIIGRGRGIGRGRGIGRGRGIGRRRRIGKKKKGDGARGRGRKRGRHRGRHRGIGRMKHIGRGRGIGKMKMIGRHRLIGRIRMIGRLRGIGRKRGIGRGRGIGRGRRIGKMKLIGRGRRIGRNRIIGR------KKHIGRGRGIGKMKMIGRHRLIGR...