Entering edit mode
12.7 years ago
Nikita
▴
10
Hello all,
What i want to do is view my alignment file on web. However when i do so using PHP the entire alignment file is read but the text aligns itself to left and leaves the alignment hard to interpret. this is my PHP code
$file = fopen("res.aln", "r") or exit("Select sequences to align!");
while(!feof($file))
{
echo fgets($file). "<br />";
}
fclose($file);
Is there a way to read alignment files without incorporating any viewer. Also is it possible to directly open the alignment file like we do by double-clicking it???
what kind of alignment file? why don't you use this: http://biostar.stackexchange.com/questions/6134/blast-output-into-jsp-html. or simply:
that shouldn't matter. keep in mind that it surely is a plain text file, so in terms of web serving it's like dealing with any other text. just echo a "
" just after it and it should do. I would though think carefully about how exactly I would want the users to interact with that file, as serving it as described may not be optimal.Yes, sounds like you just need pre tags...
@michael Dondrup: Its a multiple sequence alignment file..
@Michael Dondrup, Jorge Amigo : thankss for it!! it worked!!