The format of a weighted alignment is as follows: use snap.WeightedData instead of snap.Data and add a line with <input name=“weights”> containing a comma separated list of weights. It may look something like this:
<data spec='snap.WeightedData' id='alignment' dataType='integerdata' statecount='3’>
<input name='weights'>1,2,3,1,4,4,1,7,1,1,1,1</input>
<sequence taxon='A' totalcount='3'>2,1,2,2,2,1,0,0,2,2,2,0</sequence>
<sequence taxon='B' totalcount='3'>2,2,1,2,2,0,1,0,1,2,0,1</sequence>
<sequence taxon='C' totalcount='3'>1,2,2,2,0,0,0,1,2,1,2,1</sequence>
<sequence taxon='D' totalcount='3'>2,2,2,1,0,0,0,0,0,0,0,1</sequence>
</data>