Hi Rochak,
since you have modified code in processQuery, try using the query object
by calling the functions such as:
getDatasetNames()
getAllAttributes(datasetName)
see Query.pm for details.
With these methods, you can figure out the name of datasets and
respective number of attributes. By doing so, you can adjust your code
to adapt to two dataset queries.
Best,
Syed
Rochak Neupane wrote:
I figured that since the attribute that contains the sequence is provided as
an option in "Sequences" page, the format is already set as FASTA. So, I
figured that I did not need to create a new formatter for it. I modified
processQuery method in FASTA.pm to scan for the sequence attribute and store
its location in the attributes.
I managed to get that working, but only when ALL attributes are from same
dataset. When I selected attributes from a second dataset, its attributes
are added and my changes do not work.
I guess intercepting my sequence attribute in Formatter module does not work
all the time. Where would be a good place to intercept my attribute and
force a different Formatter or add logic so that I can use a modified
FASTA.pm formatter?
Thanks,
Rochak