I think the sequence IDs should follow QIIME's demultiplexed format:

http://qiime.org/documentation/file_formats.html#post-split-libraries-fasta-file-overview

So you'd write out `<sampleID>_<integer>` for each sequence- see split_libraries.py and split_libraries_fastq.py for examples of how to do this.