#include #include #include #include #include #include #include #include using namespace std; int main(int nNumberofArgs, char* pszArgs[]) { system("clear"); cout<<"\t\t Format_convert"<>name; name.append("_reads.txt"); string outputfile="Desktop/galign/Sequence_reads/"; outputfile.append(name); int srf; cout<<"How many sequence read files do you have? "; cin>>srf; cout<>remove; int rr; string file; string *filename; filename=new string[100]; for (int i=0;i>file; filename[i]="Desktop/"; filename[i].append(file); FILE *fp; fp=fopen(filename[i].c_str(),"r"); if(fp!=NULL){ rr=1; } } } int hh=0; string line; int length; int overlap; double leg; ifstream fh (filename[0].c_str()); while(! fh.eof()){ getline (fh, line); hh++; if (hh==2){ length=line.length()-remove; if (length<26){ cout<<"Error. Sequence reads too short for conversion (minimum 26)."<=26 && length<=39){ overlap=0; } if (length>39 && length<=52){ overlap=26; } if (length>53 && length<=78){ leg=length; overlap=int((leg/2)+0.5); } if (length>78){ cout<<"Error. Sequence reads too long for conversion (maximum 78)."<0){ f<